Android app title bar doesn't show when testing the app?

Daniel Kvist picture Daniel Kvist · Jan 6, 2015 · Viewed 10.7k times · Source

I'm creating an app, and when I build it and start it on my phone (a Sony Xperia Z1 with Android 4.4.4), the title bar doesn't show. All activities is rendered without the title bar, like this:

enter image description here

I'm using Android Studio, and in the editor, the title bar is visible. It just don't work when the app is being ran.

All help with this is appreciated!

Answer

Akash Magoon picture Akash Magoon · Jun 10, 2015

Update to this answer. ActionBarActivity was deprecated as of version 22.1.0. To achieve this same outcome, extend AppCompatActivity.

ActionBarActivity API Class Reference