How do I remove the title bar in Android studio with example
In this lesson describes how to hide the status bar on different versions of Android. Hiding the status bar (and optionally, the navigation bar) lets the content use more of the display space, thereby providing a more immersive user experience.
Method: One
Figure: 1 shows an app with a visible status bar:
Add new theme style with no action bar in your and set. styles.xmlparent="Theme.AppCompat.NoActionBar"
Figure:2 Hidden status bar.
The advantages of using an activity theme are as follows:
- It’s easier to maintain and less error-prone than setting a flag programmatically.
- It results in smoother UI transitions because the system has the information it needs to render your UI before instantiating your app’s main activity.
Method: Two
Android hide action bar programmatically
When you hide title bar then you can add this code in a java class
Watch Full Video
Coming soon…
- Hide the navigation bar
- Enable fullscreen mode
- Respond to UI visibility changes
Guys, you have any Question related then comments in below
0 Comments