Code example for FragmentActivity

Methods: onCreate, requestWindowFeature

0
 
	private boolean initFinished;
	 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		if (hideTitlebar()) { 
			requestWindowFeature(Window.FEATURE_NO_TITLE);
		} 
	} 
	 
	/** 
	 * Allow sub classes to determine if the titlebar (or actionbar in honeycomb+) should show.  The default is true 
	 * @return 
	 */ 
	protected boolean hideTitlebar() { 
		return true; 
	} 
	 
	@Override 
	public void onContentChanged() {