Code example for ListFragment

Methods: onListItemClick, getActivity

0
		getListView().setCacheColorHint(0);
	} 
 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		((MenuActivity)getActivity()).getSlideoutHelper().close();
	} 
 
	 
} 
Contextual code suggestions in your IDE  Get Codota for Java