1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<? xml version = "1.0" encoding = "utf-8" ?>
< LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android"
android:layout_width = "match_parent"
android:layout_height = "match_parent"
android:orientation = "vertical"
android:layout_marginRight = "5dp"
android:layout_marginLeft = "10dp" >
< RadioGroup
android:layout_width = "match_parent"
android:layout_height = "wrap_content" >
android:id = "@+id/rb_disable"
android:layout_width = "match_parent"
android:layout_height = "wrap_content"
android:button = "@null"
android:drawableRight = "@android:drawable/btn_radio"
android:text = "@string/data_romaing_disable" />
< RadioButton
android:id = "@+id/rb_national_romaing_only"
android:layout_width = "match_parent"
android:layout_height = "wrap_content"
android:button = "@null"
android:drawableRight = "@android:drawable/btn_radio"
android:text = "@string/data_romaing_national_romaing_only" />
< RadioButton
android:id = "@+id/rb_all_network"
android:layout_width = "match_parent"
android:layout_height = "wrap_content"
android:button = "@null"
android:drawableRight = "@android:drawable/btn_radio"
android:text = "@string/data_romaing_all_network" />
</ RadioGroup >
</ LinearLayout >
|
想要改变RadioButton 的位置,就先设置默认的图片为null ,在调用对应的方法将图标放在指定的位置