Code example for ListFragment

Methods: onCreateView

0
			showDetails(position);	
	} 
 
 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = super.onCreateView(inflater, container, savedInstanceState);
		view.setBackgroundColor(Color.WHITE);
		return view;
		 
	} 
 
 
	/** 
	 * Helper function to show the details of a selected item, either by 
	 * displaying a fragment in-place in the current UI, or starting a 
	 * whole new activity in which it is displayed. 
	 */ 
	private void showDetails(int index) {
		mCurCheckPosition  = index;
		// We can display everything in-place with fragments. 
		// Have the list highlight this item and show the data.