I want to do android program that contains no title bar. For some reason I cant remove title bar. I have already tried this coding.
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
This one also I have tried but the program suddenly stops..
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
How can I fix this?
So basically we just need to change DarkActionBar to NoActionBar. NoActionBar theme prevents the app from using the native ActionBar class to provide the app bar. Thus it removes the title of every activity. Another way for removing the title specifically from an activity is by using a getSupportActionBar().
The Title bar is a small part of the UI that you can supply with some text and a color. You see it on a lot of Android 2.0 Apps. See here. The Actionbar is the bar with buttons that has back navigation etc. If you can chose, you use it instead of the Titlebar.
This won't work on Android Studio. You need to edit your AndroidManifest.xml and add this line to the Activity in which you want the window title to be removed:
<activity
...
android:theme="@style/Theme.AppCompat.NoActionBar"
...
>
If you require the title to be removed on all activities I suggest to pick a title-less App Theme.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With