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:
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!
The requestWindowFeature(Window. FEATURE_NO_TITLE) method of Activity must be called to hide the title.
To add actions to the action bar, create a new XML file in your project's res/menu/ directory. The app:showAsAction attribute specifies whether the action should be shown as a button on the app bar.
Update to this answer. ActionBarActivity was deprecated as of version 22.1.0. To achieve this same outcome, extend AppCompatActivity.
ActionBarActivity API Class Reference
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