Code example for ListFragment

Methods: setArguments

0
	protected ImageButton mRefreshButton = null;
    protected ProgressBar mRefreshProgress = null;
 
	protected ListAdapter mAdapter;
 
	public BaseListFragment() { 
		final Bundle args = new Bundle();
		args.putInt("type", HOSTS);
		setArguments(args);
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		getListView().setAdapter(mAdapter);
 
		if(!UIUtils.isTablet) { 
			//getListView().setEmptyView(getActivity().findViewById(R.id.add_new_host_button)); 
		} 
	}