0

I am having problem displaying the action bar in my application in android < 5.0.

^^In 4.4, its not displaying. Action bar is not visible

But same application when opened in android 5.0 its displaying perfectly.

My activity_main
http://pastebin.com/F2c6BGj9
Manifest
http://pastebin.com/AJ7pnbMB
drawer_row
http://pastebin.com/L6de0TnM
styles.xml
http://pastebin.com/0tVpDV3M
Community
  • 1
  • 1

1 Answers1

2

I think is because your style is :

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

Try with:

<style name="AppTheme" parent="Theme.AppCompat.Light">

UPDATE:

Your logcat says:

This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.

You must be calling Window.FEATURE_ACTION_BAR in your activity and you haven't post your java code and after looking at the code in your main_activity.xml I belive that you're using the toolbar, not the action bar, so maybe the answer I gave to you wouldn't work, and looking at this, this and this I think that you should put this instead of what I said before:

<item name="windowActionBar">false</item> 
Community
  • 1
  • 1
Alejandro Cumpa
  • 2,118
  • 1
  • 24
  • 45