2

Hey i am trying to change the color of the status bar to be the same as the action bar color (maybe transparent). On Android Lolipop it is not a problem but on Kitkat it looks like on this picture

I tried many others solution but it still not fix it.

here is the v19 xml style

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

    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowTranslucentNavigation">true</item>

</style>
nirds32
  • 33
  • 1
  • 5
  • 3
    duplicate: http://stackoverflow.com/questions/26496411/android-material-status-bar-color-wont-change – Steve M Nov 12 '15 at 18:10
  • @SteveM I tried but it still not working – nirds32 Nov 12 '15 at 19:34
  • what exactly is not working? On KitKat you should be able to make the status bar translucent and put a color beneath it as described in this answer: https://stackoverflow.com/a/27516736/919219 – Zielony Dec 14 '18 at 09:36

1 Answers1

-3

This is not possible in Android 4.4 API level 19. You can do it from Android 5.0 API level 21 and forward.