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();
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java