White navigationbar with grey icons

后端 未结 1 1273
灰色年华
灰色年华 2021-01-01 04:56

How can I get this style in my android app? White navigationbar and grey icons. An example is when opening the application drawer.

I have tried many options but with

相关标签:
1条回答
  • 2021-01-01 05:09

    For API >= 23

    Try :

    getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); 
    

    OR in style :

    <item name="android:windowLightStatusBar">true</item>
    <item name="colorPrimary">@color/colorWhite</item>
    <item name="colorPrimaryDark">#colorPrimaryDak</item>
    <item name="colorAccent">@color/colorAccent</item>
    

    For API < 23

    Declare this under v21/style.

    <item name="colorPrimaryDark" tools:targetApi="23">@color/colorPrimary</item> // white
    <item name="android:windowLightStatusBar" tools:targetApi="23">true</item>
    

    UPDATE :

    <item name="colorPrimaryDark">@color/colorPrimary</item> // white
    <item name="android:windowLightStatusBar" tools:targetApi="23">true</item>
    
    0 讨论(0)
提交回复
热议问题