Code example for ListFragment

Methods: setArguments

0
		DataViewFragment f = new DataViewFragment();
		// Supply index input as an argument. 
		Bundle args = new Bundle();
		args.putInt("index", index);
		args.putInt("prevFragmentId", previousFragmentId);
		f.setArguments(args);
		args = null;
		 
		return f;
	} 
 
	public int getShownIndex() { 
		return getArguments().getInt("index", 0);
	} 
	 
	public int getPreviousFragmentId() { 
		return getArguments().getInt("prevFragmentId", sId);
	} 
 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE