Code example for Fragment

Methods: getArgumentsonCreate

0
	public ItemDetailFragment() { 
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		if (getArguments().containsKey(ARG_ITEM_ID)) {
			// Load the dummy content specified by the fragment 
			// arguments. In a real-world scenario, use a Loader 
			// to load content from a content provider. 
			mItem = DummyContent.ITEM_MAP.get(getArguments().getString(
					ARG_ITEM_ID));
		} 
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View rootView = inflater.inflate(R.layout.fragment_item_detail,
Contextual code suggestions in your IDE  Get Codota for Java