Remove header from Activity

CaptainNemo

I am using firebase UI android library and my main activity inherits from FirebaseLoginBaseActivity.

For some odd reason a title bar was added to my main view which I don't know how to get rid of since it does not appear in my layout xml.

When trying this:

super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_google_maps);

In the onCreate it fails with this message:

android.util.AndroidRuntimeException: requestFeature() must be called before adding content

When trying to set this:

android:theme="@android:style/Theme.NoTitleBar"

In the AndroidManifest.xml it fails with this message:

You need to use a Theme.AppCompat theme (or descendant) with this activity.

Alex Townsend

Try setting your base theme to android:theme="@style/Theme.AppCompat.Light.NoActionBar" instead of android:theme="@android:style/Theme.NoTitleBar".

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Remove header from Container

From Dev

Android: remove activity from stack

From Dev

Remove mail icon from activity?

From Dev

Android Activity remove from stack

From Dev

Remove chkconfig header from output

From Dev

Remove chkconfig header from output

From Dev

Remove header box from IPBoard?

From Dev

recyclerview header, access objects from the header in the Activity/Fragment

From Dev

How to remove activity from back stack in android?

From Dev

How remove last activity from the stack?

From Dev

Remove top activity from stack android

From Dev

Remove title from action bar activity

From Dev

Remove fragment from activity when clicking button?

From Dev

remove activity feed from Wordpress admin

From Dev

How to remove an Activity from a WorkFlow in BroadleafCommerce?

From Dev

Remove default TextView from new activity layout

From Dev

How to remove activity from multiple feeds?

From Dev

How to remove title bar from the android activity?

From Dev

Remove top activity from stack android

From Dev

Can't remove padding from Activity Dialog

From Dev

How to remove an Activity from a WorkFlow in BroadleafCommerce?

From Dev

How to remove an activity from showing in the Launcher programmatically?

From Dev

Remove Activity Indicator subview from UIButton view

From Dev

How to remove activity from back stack in android?

From Dev

How to remove splash activity from an existing project?

From Dev

Remove header style from gridview export to excel

From Dev

Android: How to remove header view from ExpandableListView?

From Dev

How to remove header and footer from particular post

From Dev

Remove margin and padding from floating table header

Related Related

HotTag

Archive