Back to project page OrderPicker.
The source code is released under:
Eclipse Public License (EPL) ---------------------------- THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF T...
If you think the Android project OrderPicker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.liamkeene.orderpicker; /* w w w.ja v a 2 s. c o m*/ import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.liamkeene.orderpicker.Order; public class OrderDetailFragment extends Fragment { // Implement the Order class TextView textOrderID; TextView textOrderName; TextView textOrderDate; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Intent launchingIntent = getActivity().getIntent(); Order order = launchingIntent.getParcelableExtra("com.liamkeene.orderpicker.Order"); View viewer = (View) inflater.inflate( R.layout.order_detail_fragment, container, false); textOrderID = (TextView) viewer.findViewById(R.id.text_order_id); textOrderName = (TextView) viewer.findViewById(R.id.text_order_name); textOrderDate = (TextView) viewer.findViewById(R.id.text_order_date); populateOrderDetails(order); return viewer; } public void populateOrderDetails(Order order) { textOrderID.setText(order.getId()); textOrderName.setText(order.getName()); textOrderDate.setText(order.getDate()); } }