Code example for ListFragment

Methods: setArguments

0
 
	public QueryFragment() { 
 
	} 
 
	public QueryFragment(Bundle arguments) {
		setArguments(arguments);
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		// We have a menu item to show in action bar. 
		setHasOptionsMenu(true);
 
		mAdapter = new QueryListAdapter(getActivity(), R.layout.query_list_item, null,
				new String[] {}, new int[] {}, 0);
 
		setListAdapter(mAdapter);