Code example for Fragment

Methods: setHasOptionsMenu

0
	 
	public PlasmaSubFragment() { 
		//eek! I wish fragments weren't lame and required this. 
	} 
	 
	public PlasmaSubFragment(PDActivity p) {
		this.p = p;
		setHasOptionsMenu(true); 
	} 
	 
	public void setup() { 
		 
	} 
	 
	 
	@Override 
	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
	    inflater.inflate(getMenu(), menu);
	} 
	 
Stop searching for code, let great code find you!  Add Codota to your java IDE