Implement navigationBarDividerColor properly
This commit is contained in:
@@ -35,12 +35,4 @@
|
|||||||
android:background="?android:attr/windowBackground"
|
android:background="?android:attr/windowBackground"
|
||||||
app:menu="@menu/navigation"/>
|
app:menu="@menu/navigation"/>
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/line"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="0.1px"
|
|
||||||
android:background="?android:attr/navigationBarColor"
|
|
||||||
android:elevation="9dp"
|
|
||||||
tools:ignore="PxUsage"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="navigationBarColor">@android:color/white</color>
|
<color name="navigationBarColor">@android:color/white</color>
|
||||||
|
<color name="navigationBarDividerColor">#E0E0E0</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -7,4 +7,5 @@
|
|||||||
<color name="colorPrimaryDark">#087f23</color>
|
<color name="colorPrimaryDark">#087f23</color>
|
||||||
<color name="colorSecondary">#AEEA00</color>
|
<color name="colorSecondary">#AEEA00</color>
|
||||||
<color name="navigationBarColor">@android:color/black</color>
|
<color name="navigationBarColor">@android:color/black</color>
|
||||||
|
<color name="navigationBarDividerColor">@android:color/transparent</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||||
<item name="android:navigationBarColor">@color/navigationBarColor</item>
|
<item name="android:navigationBarColor">@color/navigationBarColor</item>
|
||||||
|
<item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@color/navigationBarDividerColor</item>
|
||||||
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">@bool/is_day</item>
|
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">@bool/is_day</item>
|
||||||
<item name="actionBarStyle">@style/Widget.MaterialComponents.Light.ActionBar.Solid</item>
|
<item name="actionBarStyle">@style/Widget.MaterialComponents.Light.ActionBar.Solid</item>
|
||||||
<item name="colorPrimary">@color/colorPrimary</item>
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user