0

i have main activity and using this style

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

but this still showing action bar on nexus 5 devices enter image description here

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Usman Saeed
  • 843
  • 3
  • 9
  • 21

2 Answers2

4

If all the rest doesn't work for you, make sure You don't have this in your XML:

android:paddingTop="?attr/actionBarSize"
DuDa
  • 3,718
  • 4
  • 16
  • 36
1

add this into your activity source code at the first of your public class

getActionbar().hide();