|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/myColor"> |
4 | | - |
5 | | -<EditText android:id="@+id/EditText01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:inputType="numberSigned|numberDecimal"></EditText> |
6 | | - <RadioGroup android:id="@+id/RadioGroup01" |
7 | | - android:layout_width="wrap_content" android:layout_height="wrap_content"> |
8 | | - <RadioButton android:id="@+id/RadioButton01" |
9 | | - android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/celsius" android:checked="true"></RadioButton> |
10 | | - <RadioButton android:id="@+id/RadioButton02" |
11 | | - android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/fahrenheit"></RadioButton> |
| 3 | + android:orientation="vertical" android:layout_width="fill_parent" |
| 4 | + android:layout_height="fill_parent" android:background="@color/myColor"> |
| 5 | + <EditText android:layout_height="wrap_content" android:id="@+id/editText1" |
| 6 | + android:layout_width="match_parent" android:inputType="numberDecimal|numberSigned"></EditText> |
| 7 | + <RadioGroup android:layout_height="wrap_content" android:id="@+id/radioGroup1" |
| 8 | + android:layout_width="match_parent"> |
| 9 | + <RadioButton android:layout_width="wrap_content" |
| 10 | + android:id="@+id/radio0" android:layout_height="wrap_content" |
| 11 | + android:text="@string/celsius" android:checked="true"></RadioButton> |
| 12 | + <RadioButton android:layout_width="wrap_content" |
| 13 | + android:id="@+id/radio1" android:layout_height="wrap_content" |
| 14 | + android:text="@string/fahrenheit"></RadioButton> |
12 | 15 | </RadioGroup> |
13 | | - <Button android:id="@+id/Button01" |
14 | | - android:layout_height="wrap_content" android:onClick="@string/buttonHandler" android:layout_width="wrap_content" android:text="@string/calc"></Button> |
| 16 | + <Button android:id="@+id/button1" android:layout_width="wrap_content" |
| 17 | + android:layout_height="wrap_content" android:text="@string/calc" |
| 18 | + android:onClick="myClickHandler"></Button> |
15 | 19 | </LinearLayout> |
0 commit comments