Code example for Fragment

Methods: onCreateView

0
		 
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);
		 
		// Inflate the layout for this fragment 
		View view = inflater.inflate(layoutResourceId, container, false);
		return initializeView(view);
	} 
	 
	// Sub-classes can override to change the view 
	protected View initializeView(View view){
		return view;
	} 
}