Browse Source

Modify color selector style

Wayne 5 years ago
parent
commit
206cb8a1d1

+ 12 - 12
reader/src/main/res/drawable/shape_color_oval.xml

@@ -1,22 +1,22 @@
 <?xml version="1.0" encoding="utf-8"?>
 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:id="@+id/ovalBorder">
+
+    <item
+        android:id="@+id/ovalColor"
+        android:left="2dp"
+        android:right="2dp"
+        android:top="2dp"
+        android:bottom="2dp">
         <shape android:shape="oval">
-            <stroke
-                android:width="2dp"
-                android:color="#ffffff" />
-            <padding
-                android:bottom="4dp"
-                android:left="4dp"
-                android:right="4dp"
-                android:top="4dp" />
+            <solid android:color="#000000" />
             <corners android:radius="16dp" />
         </shape>
     </item>
-
-    <item android:id="@+id/ovalColor">
+    <item android:id="@+id/ovalBorder">
         <shape android:shape="oval">
-            <solid android:color="#000000" />
+            <stroke
+                android:width="1dp"
+                android:color="#EEEEEE" />
             <corners android:radius="16dp" />
         </shape>
     </item>

+ 11 - 11
reader/src/main/res/drawable/shape_color_oval_checked.xml

@@ -1,22 +1,22 @@
 <?xml version="1.0" encoding="utf-8"?>
 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:id="@+id/ovalBorder">
+    <item
+        android:id="@+id/ovalColor"
+        android:left="4dp"
+        android:right="4dp"
+        android:top="4dp"
+        android:bottom="4dp">
         <shape android:shape="oval">
-            <stroke
-                android:width="2dp"
-                android:color="#0077fd" />
-            <padding
-                android:bottom="4dp"
-                android:left="4dp"
-                android:right="4dp"
-                android:top="4dp" />
+            <solid android:color="#000000" />
             <corners android:radius="16dp" />
         </shape>
     </item>
 
-    <item android:id="@+id/ovalColor">
+    <item android:id="@+id/ovalBorder">
         <shape android:shape="oval">
-            <solid android:color="#000000" />
+            <stroke
+                android:width="2dp"
+                android:color="#0077fd" />
             <corners android:radius="16dp" />
         </shape>
     </item>