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 |
<Button |
28 |
android:id="@+id/btnclear" |
29 |
android:layout_width="wrap_content" |
30 |
android:layout_height="wrap_content" |
31 |
android:text="CA"/> |
32 |
</LinearLayout> |
33 |
|
34 |
|
35 |
<LinearLayout |
36 |
android:orientation="horizontal" |
37 |
android:layout_width="fill_parent" |
38 |
android:layout_height="wrap_content" |
39 |
> |
40 |
<Button |
41 |
android:id="@+id/btnadd" |
42 |
android:layout_width="fill_parent" |
43 |
android:layout_height="fill_parent" |
44 |
android:layout_weight="1" |
45 |
android:text="+" /> |
46 |
<Button |
47 |
android:id="@+id/btnsub" |
48 |
android:layout_width="fill_parent" |
49 |
android:layout_height="fill_parent" |
50 |
android:layout_weight="1" |
51 |
android:text="-" /> |
52 |
<Button |
53 |
android:id="@+id/btnmul" |
54 |
android:layout_width="fill_parent" |
55 |
android:layout_height="fill_parent" |
56 |
android:layout_weight="1" |
57 |
android:text="*" /> |
58 |
<Button |
59 |
android:id="@+id/btndiv" |
60 |
android:layout_width="fill_parent" |
61 |
android:layout_height="fill_parent" |
62 |
android:layout_weight="1" |
63 |
android:text="/" /> |
64 |
</LinearLayout> |
65 |
|
66 |
<LinearLayout |
67 |
android:orientation="horizontal" |
68 |
android:layout_width="fill_parent" |
69 |
android:layout_height="wrap_content" |
70 |
> |
71 |
<Button |
72 |
android:id="@+id/btnsqr" |
73 |
android:layout_width="fill_parent" |
74 |
android:layout_height="fill_parent" |
75 |
android:layout_weight="1" |
76 |
android:text="^2" /> |
77 |
<Button |
78 |
android:id="@+id/btnsqrt" |
79 |
android:layout_width="fill_parent" |
80 |
android:layout_height="fill_parent" |
81 |
android:layout_weight="1" |
82 |
android:text="sqrt" /> |
83 |
</LinearLayout> |
84 |
|
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/btn1" |
92 |
android:layout_width="fill_parent" |
93 |
android:layout_height="fill_parent" |
94 |
android:layout_weight="1" |
95 |
android:text="1" /> |
96 |
<Button |
97 |
android:id="@+id/btn2" |
98 |
android:layout_width="fill_parent" |
99 |
android:layout_height="fill_parent" |
100 |
android:layout_weight="1" |
101 |
android:text="2" /> |
102 |
<Button |
103 |
android:id="@+id/btn3" |
104 |
android:layout_width="fill_parent" |
105 |
android:layout_height="fill_parent" |
106 |
android:layout_weight="1" |
107 |
android:text="3" /> |
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/btn4" |
116 |
android:layout_width="fill_parent" |
117 |
android:layout_height="fill_parent" |
118 |
android:layout_weight="1" |
119 |
android:text="4" /> |
120 |
<Button |
121 |
android:id="@+id/btn5" |
122 |
android:layout_width="fill_parent" |
123 |
android:layout_height="fill_parent" |
124 |
android:layout_weight="1" |
125 |
android:text="5" /> |
126 |
<Button |
127 |
android:id="@+id/btn6" |
128 |
android:layout_width="fill_parent" |
129 |
android:layout_height="fill_parent" |
130 |
android:layout_weight="1" |
131 |
android:text="6" /> |
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/btn7" |
140 |
android:layout_width="fill_parent" |
141 |
android:layout_height="fill_parent" |
142 |
android:layout_weight="1" |
143 |
android:text="7" /> |
144 |
<Button |
145 |
android:id="@+id/btn8" |
146 |
android:layout_width="fill_parent" |
147 |
android:layout_height="fill_parent" |
148 |
android:layout_weight="1" |
149 |
android:text="8" /> |
150 |
<Button |
151 |
android:id="@+id/btn9" |
152 |
android:layout_width="fill_parent" |
153 |
android:layout_height="fill_parent" |
154 |
android:layout_weight="1" |
155 |
android:text="9" /> |
156 |
</LinearLayout> |
157 |
<LinearLayout |
158 |
android:orientation="horizontal" |
159 |
android:layout_width="fill_parent" |
160 |
android:layout_height="wrap_content" |
161 |
> |
162 |
<Button |
163 |
android:id="@+id/btnpoint" |
164 |
android:layout_width="fill_parent" |
165 |
android:layout_height="fill_parent" |
166 |
android:layout_weight="1" |
167 |
android:text="." /> |
168 |
<Button |
169 |
android:id="@+id/btn0" |
170 |
android:layout_width="fill_parent" |
171 |
android:layout_height="fill_parent" |
172 |
android:layout_weight="1" |
173 |
android:text="0" /> |
174 |
<Button |
175 |
android:id="@+id/btnsum" |
176 |
android:layout_width="fill_parent" |
177 |
android:layout_height="fill_parent" |
178 |
android:layout_weight="1" |
179 |
android:text="=" /> |
180 |
</LinearLayout> |
181 |
</LinearLayout> |