Android app bar not showing when testing app?

I create an application, and when I create and launch it on my phone (Sony Xperia Z1 with Android 4.4.4), the title bar does not appear. All actions are displayed without a title, for example:

enter image description here

I am using Android Studio, and in the editor the title bar is visible. It just does not work when the application starts.

All help is appreciated!

+7
android rendering titlebar
source share
3 answers

Update this answer. ActionBarActivity has been deprecated since version 22.1.0. Extend AppCompatActivity to achieve the same result.

ActionBarActivity API class reference

+8
source share

I just found the answer. Each of my Activity classes has expanded the Activity , and when I change it to ActionBarActivity , an action bar (called the "title bar") appears. I changed these values ​​when I created the classes because I was “sure” that in all my other projects the classes were extended by just Activity , not ActionBarActivity , but I was “sure of the wrongness”.

Thank you all for your suggestions!

+4
source share

I am not on my computer, so I cannot bind it, but go to your .xml style and make sure there is nothing that says NoActionBar.

+2
source share

All Articles