How to remove title bar in android?
In the Style.xml window (App->src->main->res->values->styles.xml
)make changes to the <resources>
to look like this:
<resources> <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> </style></resources>
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.
try to change
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
into
this.supportrequestWindowFeature(Window.FEATURE_NO_TITLE);
works for me