I want my title bar to be hidden when I turn my device into landscape. I saw an XML parameter to hide the title bar, and the following execution example programmatically:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
BUT, I use the parameter configChangesfor orientationand screenSize, therefore, my activity is not recreated again when it focuses on the landscape (I do this for some reason). Therefore, I cannot use the above methods, since these calls must be completed before setContentView().
So any ideas? Thank.
source
share