Code example for ListFragment

Methods: getActivity, getLoaderManager, onActivityCreated, setHasOptionsMenu

0
		setArguments(args);
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		setHasOptionsMenu(true);
 
		mAdapter = new GenresAdapter(getActivity(), null, false);
 
		getLoaderManager().initLoader(0, null, this);
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.playlists_browser, container, false);
		return view;
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java