Code example for ListFragment

Methods: getListViewsetListAdapter, getLoaderManager, onActivityCreated

0
 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState)
	{ 
		super.onActivityCreated(savedInstanceState);
		getLoaderManager().restartLoader(-2, null, this);
		mAdapter = new VisibleListAdapter(mContext, null, 0);
		setListAdapter(mAdapter);
		getListView().setOnItemClickListener(this);
	} 
 
 
	@Override 
	public void onAttach(Activity activity)
	{ 
		super.onAttach(activity);
		mContext = activity.getBaseContext();
	} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE