Code example for ListFragment

Methods: setArguments

0
		AddShowSearchFragment instance = new AddShowSearchFragment();
 
		Bundle args = new Bundle();
		args.putString("query", query);
 
		instance.setArguments(args);
		return instance;
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater,
	                         ViewGroup container,
	                         Bundle savedInstanceState) {
		return inflater.inflate(R.layout.add_show_search_fragment,
		                        container,
		                        false); 
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);