Code example for ListFragment

Methods: getListView, onStart, setListAdapter

0
		super(); 
	} 
 
	@Override 
	public void onStart() { 
		super.onStart(); 
		setListAdapter(mListAdapter);
		getListView().setOnItemClickListener(this);
		loadCategory(0); 
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mListAdapter = new ArrayAdapter<String>(getActivity(), R.layout.list_item, 
				mItemsList);
	} 
 
	/** 
	 * Sets the listener that should be notified of item selection events. 
	 * @param listener the listener to notify.