1

I want to change the background color of this soft on screen navigation from black to blue. Twitter android app has done it. I did this,

@color/colorPrimaryDark

Before adding the navigationBarColor tag in styles.xml

Before

After adding the navigationBarColor tag in styles.xml

enter image description here

I cannot find a way to change the icon colors to dark.

Here is my styles.xml

 <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="android:windowContentTransitions">true</item>
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:statusBarColor">@color/colorPrimaryDark</item>
        <item name="android:windowLightStatusBar">true</item>
        <item name="android:colorEdgeEffect">@color/subtleGrey</item>
        <item name="actionButtonStyle">@style/myActionButtonStyle</item>
        <item name="android:splitMotionEvents">false</item>
        <item name="android:windowEnableSplitTouch">false</item>
        <item name="android:navigationBarColor">@color/colorPrimaryDark</item>
</style>
Deepan
  • 787
  • 2
  • 7
  • 13

2 Answers2

0
    <item name="android:navigationBarColor" tools:targetApi="lollipop">@color/colorPrimary
    </item>

try it

dazhao
  • 3
  • 5
  • It changes the background color but fails to change the navigation icon color. This is exactly what I did already. – Deepan Jul 20 '18 at 09:07
0

After a while, I got this.

    <item name="android:windowLightNavigationBar">true</item>

Adding this solved my problem!

Deepan
  • 787
  • 2
  • 7
  • 13