3-2
res\layout\main.xml
01 | <? xml version = "1.0" encoding = "utf-8" ?> |
03 | android:layout_width = "fill_parent" |
04 | android:layout_height = "wrap_content" |
05 | android:orientation = "vertical" > |
08 | android:layout_width = "fill_parent" |
09 | android:layout_height = "wrap_content" |
10 | android:text = "@string/hello" /> |
13 | android:id = "@+id/textView1" |
14 | android:layout_width = "wrap_content" |
15 | android:layout_height = "wrap_content" |
16 | android:text = "@string/bmi_height" /> |
19 | android:id = "@+id/height" |
20 | android:layout_width = "match_parent" |
21 | android:layout_height = "wrap_content" |
22 | android:inputType = "number|numberDecimal" > |
29 | android:id = "@+id/textView2" |
30 | android:layout_width = "wrap_content" |
31 | android:layout_height = "wrap_content" |
32 | android:text = "@string/bmi_weight" /> |
38 | android:id = "@+id/weight" |
39 | android:layout_width = "match_parent" |
40 | android:layout_height = "wrap_content" |
41 | android:inputType = "number|numberDecimal" /> |
47 | android:id = "@+id/submit" |
48 | android:layout_width = "match_parent" |
49 | android:layout_height = "wrap_content" |
50 | android:text = "@string/bmi_btn" /> |
55 | android:id = "@+id/result" |
56 | android:layout_width = "wrap_content" |
57 | android:layout_height = "wrap_content" |
58 | android:text = "@string/bmi_result" /> |
62 | android:id = "@+id/suggest" |
63 | android:layout_width = "wrap_content" |
64 | android:layout_height = "wrap_content" |
70 | android:id = "@+id/goodWeight" |
71 | android:layout_width = "wrap_content" |
72 | android:layout_height = "wrap_content" |
73 | android:text = "@string/goodWeight" /> |