91-9990449935 0120-4256464 |
Android Hide Title Bar ExampleIn this example, we are going to explain how to hide the title bar and how to display content in full screen mode. The requestWindowFeature(Window.FEATURE_NO_TITLE) method of Activity must be called to hide the title. But, it must be coded before the setContentView method. The setFlags() method of Window class is used to display content in full screen mode. You need to pass the WindowManager.LayoutParams.FLAG_FULLSCREEN constant in the setFlags method. Android Hide Title Bar ExampleLet's see the full code to hide the title bar in android. activity_main.xmlFile: activity_main.xml
Activity classFile: MainActivity.java
Output: Hiding the Title OnlyOutput: Hiding the TitleBar and enabling FullScreen
Next TopicAndroid Screen Orientation Example
|