- Tiếp tục ta xem tab1_layout.xml, Tôi lấy lại bài tập trước về cộng trừ nhân chia:
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
| android:id = "@+id/TableLayout1" android:layout_width = "match_parent" android:layout_height = "match_parent" android:stretchColumns = "*" > < TableRow android:id = "@+id/tableRow1" android:layout_width = "wrap_content" android:layout_height = "wrap_content" > < TextView android:id = "@+id/textView1" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_span = "4" android:background = "#5B8020" android:gravity = "center" android:text = "Cộng trừ nhân chia" android:textColor = "#FFFFFF" android:textSize = "20sp" /> </ TableRow > < TableRow android:id = "@+id/tableRow2" android:layout_width = "wrap_content" android:layout_height = "wrap_content" > < TextView android:id = "@+id/textView2" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "Số a:" /> < EditText android:id = "@+id/editsoa" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_span = "3" android:ems = "10" android:inputType = "number" > < requestFocus /> </ EditText > </ TableRow > < TableRow android:id = "@+id/tableRow3" android:layout_width = "wrap_content" android:layout_height = "wrap_content" > < TextView android:id = "@+id/textView3" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "Số b:" /> < EditText android:id = "@+id/editsob" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_span = "3" android:ems = "10" android:inputType = "number" /> </ TableRow > < TableRow android:id = "@+id/tableRow4" android:layout_width = "wrap_content" android:layout_height = "wrap_content" > < Button android:id = "@+id/btncong" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "+" /> < Button android:id = "@+id/btntru" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "-" /> < Button android:id = "@+id/btnnhan" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "*" /> < Button android:id = "@+id/btnchia" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "/" /> </ TableRow > < TableRow android:id = "@+id/tableRow5" android:layout_width = "wrap_content" android:layout_height = "wrap_content" > < TextView android:id = "@+id/txtketqua" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_span = "4" android:background = "#5B8020" android:textColor = "#FFFFFF" android:textSize = "25sp" /> </ TableRow > </ TableLayout > |
Xem tiếp P3...
0 nhận xét:
Đăng nhận xét