|
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" |
4 | | - android:layout_width="fill_parent" |
5 | | - android:layout_height="fill_parent" |
6 | | - > |
7 | | -<TextView |
8 | | - android:layout_width="fill_parent" |
9 | | - android:layout_height="wrap_content" |
10 | | - android:text="@string/hello" |
11 | | - /> |
| 3 | + android:layout_width="fill_parent" android:layout_height="fill_parent" |
| 4 | + android:orientation="vertical" android:background="#C0C0C0"> |
| 5 | + <EditText android:layout_height="wrap_content" android:id="@+id/editText1" |
| 6 | + android:layout_width="match_parent"> |
| 7 | + <requestFocus></requestFocus> |
| 8 | + </EditText> |
| 9 | + <Button android:id="@+id/button1" android:text="Show Message" |
| 10 | + android:layout_height="wrap_content" android:layout_width="wrap_content"></Button> |
| 11 | + |
| 12 | + <RadioGroup android:id="@+id/orientation" |
| 13 | + android:layout_height="wrap_content" android:layout_width="match_parent"> |
| 14 | + <RadioButton android:text="Horizontal" |
| 15 | + android:layout_height="wrap_content" android:layout_width="wrap_content" |
| 16 | + android:id="@+id/horizontal"></RadioButton> |
| 17 | + <RadioButton android:text="Vertical" |
| 18 | + android:layout_height="wrap_content" android:layout_width="wrap_content" |
| 19 | + android:id="@+id/vertical" android:checked="true"></RadioButton> |
| 20 | + </RadioGroup> |
| 21 | + <TableLayout android:id="@+id/tableLayout1" |
| 22 | + android:layout_width="match_parent" android:layout_height="wrap_content" |
| 23 | + android:stretchColumns="1"> |
| 24 | + <TableRow android:layout_width="match_parent" |
| 25 | + android:layout_height="wrap_content" android:id="@+id/tableRow1"> |
| 26 | + <TextView android:id="@+id/textView1" android:text="User" |
| 27 | + android:layout_height="wrap_content" android:layout_width="match_parent" |
| 28 | + style="@style/myText"></TextView> |
| 29 | + <EditText android:layout_height="wrap_content" android:id="@+id/editText2" |
| 30 | + android:layout_width="match_parent" android:padding="3dip"></EditText> |
| 31 | + </TableRow> |
| 32 | + <TableRow android:layout_width="match_parent" |
| 33 | + android:layout_height="wrap_content" android:id="@+id/tableRow2"> |
| 34 | + <TextView android:id="@+id/textView2" |
| 35 | + android:text="Password" android:layout_height="wrap_content" |
| 36 | + android:layout_width="match_parent" style="@style/myText" |
| 37 | + ></TextView> |
| 38 | + <EditText android:layout_height="wrap_content" android:id="@+id/editText3" |
| 39 | + android:layout_width="match_parent" android:padding="3dip"></EditText> |
| 40 | + </TableRow> |
| 41 | + </TableLayout> |
| 42 | + |
12 | 43 | </LinearLayout> |
0 commit comments