Selaa lähdekoodia

Fixed dividers on home tab

Vadik Sirekanyan 7 vuotta sitten
vanhempi
commit
8258590128

+ 1 - 1
app/src/main/res/drawable/recycler_view_divider.xml

@@ -2,7 +2,7 @@
 <inset xmlns:android="http://schemas.android.com/apk/res/android"
     android:insetLeft="72dp">
     <shape>
-        <solid android:color="#1f000000" />
+        <solid android:color="@color/recycler_divider_color" />
         <size android:height="0.5dp" />
     </shape>
 </inset>

+ 1 - 1
app/src/main/res/layout/header.xml

@@ -8,7 +8,7 @@
         android:id="@+id/header_divider"
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
-        android:background="@color/white_12"
+        android:background="@color/recycler_divider_color"
         android:visibility="invisible" />
 
     <TextView

+ 1 - 1
app/src/main/res/layout/note.xml

@@ -92,7 +92,7 @@
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
         android:layout_gravity="bottom"
-        android:src="#1f000000"
+        android:src="@color/recycler_divider_color"
         tools:ignore="ContentDescription" />
 
 </FrameLayout>

+ 0 - 1
app/src/main/res/layout/notes_page.xml

@@ -10,7 +10,6 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:clipToPadding="false"
-        android:paddingBottom="8dp"
         android:paddingTop="8dp"
         tools:listitem="@layout/note" />
 

+ 1 - 0
app/src/main/res/values/colors.xml

@@ -17,4 +17,5 @@
     <color name="image_placeholder_color_light">@color/colorPrimary50</color>
     <color name="image_placeholder_color_dark">@color/colorPrimaryLight</color>
     <color name="ic_launcher_background">#512DA8</color>
+    <color name="recycler_divider_color">@color/black_12</color>
 </resources>