Line should be invisible

This commit is contained in:
Mygod
2018-08-04 20:20:58 +08:00
parent f6f1d4ce97
commit a63fce8bb4
5 changed files with 11 additions and 15 deletions

View File

@@ -44,12 +44,13 @@
<View
android:id="@+id/line"
android:layout_width="0dp"
android:layout_height="1dp"
android:background="@android:color/white"
android:layout_height="0.1px"
android:background="@color/navigationBarColor"
android:elevation="9dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
app:layout_constraintRight_toRightOf="parent"
tools:ignore="PxUsage"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="navigationBarColor">@android:color/white</color>
</resources>

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:navigationBarColor">@android:color/white</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
</resources>

View File

@@ -3,4 +3,5 @@
<color name="colorPrimary">#4CAF50</color>
<color name="colorPrimaryDark">#388E3C</color>
<color name="colorAccent">#AEEA00</color>
<color name="navigationBarColor">@android:color/black</color>
</resources>

View File

@@ -4,6 +4,8 @@
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:navigationBarColor">@color/navigationBarColor</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
<!-- https://android.googlesource.com/platform/packages/apps/Settings/+/7efcc35/res/values/styles.xml -->