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
  • 28,850
  • 10
  • 94
  • 99
Usman Saeed
  • 793
  • 3
  • 8
  • 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,622
  • 4
  • 15
  • 36
1

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

getActionbar().hide();