In android, we can hide the title bar in 2 ways. Hiding the title bar is used to show the full screen in game applications, browser related applications, etc…
First method is through code , we have already seen that.
Second method is through AndroidManifest.xml. You can give the below source in your androidmanifest.xml to hide the title bar.
1 | < activity android:name = ".YourClassName" |
2 | android:theme = "@android:style/Theme.NoTitleBar" > |
3 | </ activity > |
The output will looks like
Before,
After,