ソースを参照

单选按钮颜色虚化问题修复

yanglei 5 ヶ月 前
コミット
a60c1b0e21

+ 5 - 0
app/src/main/res/drawable/ic_radio_button_checked_black_24dp.xml

@@ -0,0 +1,5 @@
+<vector android:height="24dp" android:tint="#106DFF"
+    android:viewportHeight="24.0" android:viewportWidth="24.0"
+    android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FF000000" android:pathData="M12,7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5 5,-2.24 5,-5 -2.24,-5 -5,-5zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z"/>
+</vector>

+ 5 - 0
app/src/main/res/drawable/ic_radio_button_unchecked_black_24dp.xml

@@ -0,0 +1,5 @@
+<vector android:height="24dp" android:tint="#ABB4CC"
+    android:viewportHeight="24.0" android:viewportWidth="24.0"
+    android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FF000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z"/>
+</vector>

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

@@ -3,5 +3,5 @@
     <item
         android:width="16dp"
         android:height="16dp"
-        android:drawable="@drawable/icon_radio_color" />
+        android:drawable="@drawable/ic_radio_button_checked_black_24dp" />
 </layer-list>

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

@@ -3,5 +3,5 @@
     <item
         android:width="16dp"
         android:height="16dp"
-        android:drawable="@drawable/icon_radio_gray" />
+        android:drawable="@drawable/ic_radio_button_unchecked_black_24dp" />
 </layer-list>