1 |
<?xml version="1.0" encoding="utf-8"?> |
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 |
|
8 |
<LinearLayout |
9 |
android:orientation="horizontal" |
10 |
android:layout_width="fill_parent" |
11 |
android:layout_height="wrap_content" |
12 |
> |
13 |
|
14 |
<EditText |
15 |
android:id="@+id/edit" |
16 |
android:layout_width="wrap_content" |
17 |
android:layout_height="wrap_content" |
18 |
android:layout_weight="1" |
19 |
android:text="0" |
20 |
android:editable="false" |
21 |
/> |
22 |
<Button |
23 |
android:id="@+id/btnback" |
24 |
android:layout_width="wrap_content" |
25 |
android:layout_height="wrap_content" |
26 |
android:text="C"/> |
27 |
</LinearLayout> |
28 |
|
29 |
|
30 |
<LinearLayout |
31 |
android:orientation="horizontal" |
32 |
android:layout_width="fill_parent" |
33 |
android:layout_height="wrap_content" |
34 |
> |
35 |
<Button |
36 |
android:id="@+id/btnadd" |
37 |
android:layout_width="fill_parent" |
38 |
android:layout_height="fill_parent" |
39 |
android:layout_weight="1" |
40 |
android:text="+" /> |
41 |
<Button |
42 |
android:id="@+id/btnsub" |
43 |
android:layout_width="fill_parent" |
44 |
android:layout_height="fill_parent" |
45 |
android:layout_weight="1" |
46 |
android:text="-" /> |
47 |
<Button |
48 |
android:id="@+id/btnmul" |
49 |
android:layout_width="fill_parent" |
50 |
android:layout_height="fill_parent" |
51 |
android:layout_weight="1" |
52 |
android:text="*" /> |
53 |
<Button |
54 |
android:id="@+id/btndiv" |
55 |
android:layout_width="fill_parent" |
56 |
android:layout_height="fill_parent" |
57 |
android:layout_weight="1" |
58 |
android:text="/" /> |
59 |
</LinearLayout> |
60 |
|
61 |
<LinearLayout |
62 |
android:orientation="horizontal" |
63 |
android:layout_width="fill_parent" |
64 |
android:layout_height="wrap_content" |
65 |
> |
66 |
<Button |
67 |
android:id="@+id/btn1" |
68 |
android:layout_width="fill_parent" |
69 |
android:layout_height="fill_parent" |
70 |
android:layout_weight="1" |
71 |
android:text="1" /> |
72 |
<Button |
73 |
android:id="@+id/btn2" |
74 |
android:layout_width="fill_parent" |
75 |
android:layout_height="fill_parent" |
76 |
android:layout_weight="1" |
77 |
android:text="2" /> |
78 |
<Button |
79 |
android:id="@+id/btn3" |
80 |
android:layout_width="fill_parent" |
81 |
android:layout_height="fill_parent" |
82 |
android:layout_weight="1" |
83 |
android:text="3" /> |
84 |
</LinearLayout> |
85 |
<LinearLayout |
86 |
android:orientation="horizontal" |
87 |
android:layout_width="fill_parent" |
88 |
android:layout_height="wrap_content" |
89 |
> |
90 |
<Button |
91 |
android:id="@+id/btn4" |
92 |
android:layout_width="fill_parent" |
93 |
android:layout_height="fill_parent" |
94 |
android:layout_weight="1" |
95 |
android:text="4" /> |
96 |
<Button |
97 |
android:id="@+id/btn5" |
98 |
android:layout_width="fill_parent" |
99 |
android:layout_height="fill_parent" |
100 |
android:layout_weight="1" |
101 |
android:text="5" /> |
102 |
<Button |
103 |
android:id="@+id/btn6" |
104 |
android:layout_width="fill_parent" |
105 |
android:layout_height="fill_parent" |
106 |
android:layout_weight="1" |
107 |
android:text="6" /> |
108 |
</LinearLayout> |
109 |
<LinearLayout |
110 |
android:orientation="horizontal" |
111 |
android:layout_width="fill_parent" |
112 |
android:layout_height="wrap_content" |
113 |
> |
114 |
<Button |
115 |
android:id="@+id/btn7" |
116 |
android:layout_width="fill_parent" |
117 |
android:layout_height="fill_parent" |
118 |
android:layout_weight="1" |
119 |
android:text="7" /> |
120 |
<Button |
121 |
android:id="@+id/btn8" |
122 |
android:layout_width="fill_parent" |
123 |
android:layout_height="fill_parent" |
124 |
android:layout_weight="1" |
125 |
android:text="8" /> |
126 |
<Button |
127 |
android:id="@+id/btn9" |
128 |
android:layout_width="fill_parent" |
129 |
android:layout_height="fill_parent" |
130 |
android:layout_weight="1" |
131 |
android:text="9" /> |
132 |
</LinearLayout> |
133 |
<LinearLayout |
134 |
android:orientation="horizontal" |
135 |
android:layout_width="fill_parent" |
136 |
android:layout_height="wrap_content" |
137 |
> |
138 |
<Button |
139 |
android:id="@+id/btnpoint" |
140 |
android:layout_width="fill_parent" |
141 |
android:layout_height="fill_parent" |
142 |
android:layout_weight="1" |
143 |
android:text="." /> |
144 |
<Button |
145 |
android:id="@+id/btn0" |
146 |
android:layout_width="fill_parent" |
147 |
android:layout_height="fill_parent" |
148 |
android:layout_weight="1" |
149 |
android:text="0" /> |
150 |
<Button |
151 |
android:id="@+id/btnsum" |
152 |
android:layout_width="fill_parent" |
153 |
android:layout_height="fill_parent" |
154 |
android:layout_weight="1" |
155 |
android:text="=" /> |
156 |
</LinearLayout> |
157 |
</LinearLayout> |