1 |
torben |
931 |
<?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 |
torben |
938 |
<Button |
28 |
|
|
android:id="@+id/btnclear" |
29 |
|
|
android:layout_width="wrap_content" |
30 |
|
|
android:layout_height="wrap_content" |
31 |
|
|
android:text="CA"/> |
32 |
torben |
931 |
</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 |
torben |
938 |
|
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 |
torben |
940 |
android:text="x^2" /> |
77 |
torben |
938 |
<Button |
78 |
torben |
940 |
android:id="@+id/btnpow" |
79 |
|
|
android:layout_width="fill_parent" |
80 |
|
|
android:layout_height="fill_parent" |
81 |
|
|
android:layout_weight="1" |
82 |
|
|
android:text="x^y" /> |
83 |
|
|
<Button |
84 |
torben |
938 |
android:id="@+id/btnsqrt" |
85 |
|
|
android:layout_width="fill_parent" |
86 |
|
|
android:layout_height="fill_parent" |
87 |
|
|
android:layout_weight="1" |
88 |
torben |
940 |
android:text="√" /> |
89 |
|
|
<Button |
90 |
|
|
android:id="@+id/btnmroot" |
91 |
|
|
android:layout_width="fill_parent" |
92 |
|
|
android:layout_height="fill_parent" |
93 |
|
|
android:layout_weight="1" |
94 |
|
|
android:text="x√y" /> |
95 |
|
|
|
96 |
torben |
938 |
</LinearLayout> |
97 |
torben |
931 |
|
98 |
|
|
<LinearLayout |
99 |
|
|
android:orientation="horizontal" |
100 |
|
|
android:layout_width="fill_parent" |
101 |
|
|
android:layout_height="wrap_content" |
102 |
|
|
> |
103 |
|
|
<Button |
104 |
|
|
android:id="@+id/btn1" |
105 |
|
|
android:layout_width="fill_parent" |
106 |
|
|
android:layout_height="fill_parent" |
107 |
|
|
android:layout_weight="1" |
108 |
|
|
android:text="1" /> |
109 |
|
|
<Button |
110 |
|
|
android:id="@+id/btn2" |
111 |
|
|
android:layout_width="fill_parent" |
112 |
|
|
android:layout_height="fill_parent" |
113 |
|
|
android:layout_weight="1" |
114 |
|
|
android:text="2" /> |
115 |
|
|
<Button |
116 |
|
|
android:id="@+id/btn3" |
117 |
|
|
android:layout_width="fill_parent" |
118 |
|
|
android:layout_height="fill_parent" |
119 |
|
|
android:layout_weight="1" |
120 |
|
|
android:text="3" /> |
121 |
|
|
</LinearLayout> |
122 |
|
|
<LinearLayout |
123 |
|
|
android:orientation="horizontal" |
124 |
|
|
android:layout_width="fill_parent" |
125 |
|
|
android:layout_height="wrap_content" |
126 |
|
|
> |
127 |
|
|
<Button |
128 |
|
|
android:id="@+id/btn4" |
129 |
|
|
android:layout_width="fill_parent" |
130 |
|
|
android:layout_height="fill_parent" |
131 |
|
|
android:layout_weight="1" |
132 |
|
|
android:text="4" /> |
133 |
|
|
<Button |
134 |
|
|
android:id="@+id/btn5" |
135 |
|
|
android:layout_width="fill_parent" |
136 |
|
|
android:layout_height="fill_parent" |
137 |
|
|
android:layout_weight="1" |
138 |
|
|
android:text="5" /> |
139 |
|
|
<Button |
140 |
|
|
android:id="@+id/btn6" |
141 |
|
|
android:layout_width="fill_parent" |
142 |
|
|
android:layout_height="fill_parent" |
143 |
|
|
android:layout_weight="1" |
144 |
|
|
android:text="6" /> |
145 |
|
|
</LinearLayout> |
146 |
|
|
<LinearLayout |
147 |
|
|
android:orientation="horizontal" |
148 |
|
|
android:layout_width="fill_parent" |
149 |
|
|
android:layout_height="wrap_content" |
150 |
|
|
> |
151 |
|
|
<Button |
152 |
|
|
android:id="@+id/btn7" |
153 |
|
|
android:layout_width="fill_parent" |
154 |
|
|
android:layout_height="fill_parent" |
155 |
|
|
android:layout_weight="1" |
156 |
|
|
android:text="7" /> |
157 |
|
|
<Button |
158 |
|
|
android:id="@+id/btn8" |
159 |
|
|
android:layout_width="fill_parent" |
160 |
|
|
android:layout_height="fill_parent" |
161 |
|
|
android:layout_weight="1" |
162 |
|
|
android:text="8" /> |
163 |
|
|
<Button |
164 |
|
|
android:id="@+id/btn9" |
165 |
|
|
android:layout_width="fill_parent" |
166 |
|
|
android:layout_height="fill_parent" |
167 |
|
|
android:layout_weight="1" |
168 |
|
|
android:text="9" /> |
169 |
|
|
</LinearLayout> |
170 |
|
|
<LinearLayout |
171 |
|
|
android:orientation="horizontal" |
172 |
|
|
android:layout_width="fill_parent" |
173 |
|
|
android:layout_height="wrap_content" |
174 |
|
|
> |
175 |
|
|
<Button |
176 |
|
|
android:id="@+id/btnpoint" |
177 |
|
|
android:layout_width="fill_parent" |
178 |
|
|
android:layout_height="fill_parent" |
179 |
|
|
android:layout_weight="1" |
180 |
|
|
android:text="." /> |
181 |
|
|
<Button |
182 |
|
|
android:id="@+id/btn0" |
183 |
|
|
android:layout_width="fill_parent" |
184 |
|
|
android:layout_height="fill_parent" |
185 |
|
|
android:layout_weight="1" |
186 |
|
|
android:text="0" /> |
187 |
|
|
<Button |
188 |
|
|
android:id="@+id/btnsum" |
189 |
|
|
android:layout_width="fill_parent" |
190 |
|
|
android:layout_height="fill_parent" |
191 |
|
|
android:layout_weight="1" |
192 |
|
|
android:text="=" /> |
193 |
|
|
</LinearLayout> |
194 |
|
|
</LinearLayout> |