Code example for Fragment

Methods: getArgumentsonCreate

0
		return instance;
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		showId = getArguments().getInt("showId");
	} 
 
	public View onCreateView(LayoutInflater inflater,
	                         ViewGroup container,
	                         Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.show_details_fragment,
		                             container,
		                             false); 
 
		overviewView = (TextView)view.findViewById(R.id.overview);
		firstAiredView = (TextView)view.findViewById(R.id.first_aired);
 
Contextual code suggestions in your IDE  Get Codota for Java