UI控件调整

chengzhenyu 8 年 前
コミット
9d23f0c7e3

BIN
app/src/main/res/drawable-xxhdpi/radiobutton_checked.png


BIN
app/src/main/res/drawable-xxhdpi/radiobutton_unchecked.png


+ 7 - 0
app/src/main/res/drawable/radio_button_selector.xml

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
3
+
4
+    <item android:drawable="@drawable/radiobutton_checked" android:state_checked="true"/>
5
+    <item android:drawable="@drawable/radiobutton_unchecked" android:state_checked="false"/>
6
+
7
+</selector>

+ 3 - 0
app/src/main/res/layout/activity_briefs.xml

@@ -330,6 +330,7 @@
330 330
                         android:layout_height="wrap_content"
331 331
                         android:layout_marginLeft="15dp"
332 332
                         android:layout_marginRight="15dp"
333
+                        android:button="@drawable/radio_button_selector"
333 334
                         android:textColor="@color/dark_grey"
334 335
                         android:textSize="16sp"
335 336
                         android:text="@string/upload_fast"/>
@@ -341,6 +342,7 @@
341 342
                         android:layout_height="wrap_content"
342 343
                         android:layout_marginLeft="15dp"
343 344
                         android:layout_marginRight="15dp"
345
+                        android:button="@drawable/radio_button_selector"
344 346
                         android:textColor="@color/dark_grey"
345 347
                         android:textSize="16sp"
346 348
                         android:text="@string/upload_normal"/>
@@ -352,6 +354,7 @@
352 354
                         android:layout_height="wrap_content"
353 355
                         android:layout_marginLeft="15dp"
354 356
                         android:layout_marginRight="15dp"
357
+                        android:button="@drawable/radio_button_selector"
355 358
                         android:textColor="@color/dark_grey"
356 359
                         android:textSize="16sp"
357 360
                         android:text="@string/upload_slow"/>