1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <LinearLayout
3
+ xmlns : android =" http://schemas.android.com/apk/res/android"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" match_parent"
7
+ tools : context =" .activities.AdvancedCalculatorActivity"
8
+ android : orientation =" vertical" >
9
+
10
+ <LinearLayout
11
+ android : layout_width =" match_parent"
12
+ android : layout_height =" 0dp"
13
+ android : layout_weight =" 0.45"
14
+ android : orientation =" vertical" >
15
+
16
+ <TextView
17
+ android : id =" @+id/previous_value_text_view"
18
+ android : text =" "
19
+ android : layout_width =" match_parent"
20
+ android : layout_height =" 0dp"
21
+ android : layout_weight =" 0.6"
22
+ android : textSize =" 30sp"
23
+ android : gravity =" bottom|right"
24
+ android : textColor =" @color/gray"
25
+ android : layout_marginLeft =" 20dp"
26
+ android : layout_marginRight =" 20dp"
27
+ android : autoSizeTextType =" uniform" />
28
+
29
+ <TextView
30
+ android : text =" "
31
+ android : layout_width =" match_parent"
32
+ android : layout_height =" 0dp"
33
+ android : layout_weight =" 0.45"
34
+ android : gravity =" top|right"
35
+ android : id =" @+id/operation_text_view"
36
+ android : layout_marginLeft =" 20dp"
37
+ android : layout_marginRight =" 20dp"
38
+ android : textSize =" 48sp" />
39
+
40
+ </LinearLayout >
41
+
42
+ <TextView
43
+ android : text =" 0"
44
+ android : layout_width =" match_parent"
45
+ android : layout_height =" 0dp"
46
+ android : layout_weight =" 0.3"
47
+ android : id =" @+id/value_text_view"
48
+ android : gravity =" bottom|end"
49
+ android : textSize =" 72sp"
50
+ android : layout_marginLeft =" 20dp"
51
+ android : layout_marginRight =" 20dp"
52
+ android : autoSizeTextType =" uniform" />
53
+
54
+ <GridLayout
55
+ android : layout_width =" match_parent"
56
+ android : layout_height =" 0dp"
57
+ android : layout_weight =" 2"
58
+ android : rowCount =" 7"
59
+ android : columnCount =" 4" >
60
+
61
+ <Button
62
+ android : id =" @+id/btn_all_clear"
63
+ android : text =" AC"
64
+ android : backgroundTint =" @color/orange"
65
+ android : textStyle =" bold"
66
+ style =" @style/ButtonStyleAdvancedTablet" />
67
+
68
+ <Button
69
+ android : id =" @+id/btn_clear_or_clear_all"
70
+ android : text =" C/CE"
71
+ android : textStyle =" bold"
72
+ style =" @style/ButtonStyleAdvancedTablet" />
73
+
74
+ <Button
75
+ android : id =" @+id/btn_percent"
76
+ android : text =" %"
77
+ android : textStyle =" bold"
78
+ style =" @style/ButtonStyleAdvancedTablet" />
79
+
80
+ <Button
81
+ android : id =" @+id/btn_plus_minus"
82
+ android : text =" +/-"
83
+ style =" @style/ButtonStyleAdvancedTablet" />
84
+
85
+ <Button
86
+ android : id =" @+id/btn_sin"
87
+ android : text =" sin"
88
+ style =" @style/ButtonStyleAdvancedTablet" />
89
+
90
+ <Button
91
+ android : id =" @+id/btn_cos"
92
+ android : text =" cos"
93
+ style =" @style/ButtonStyleAdvancedTablet" />
94
+
95
+ <Button
96
+ android : id =" @+id/btn_tan"
97
+ android : text =" tan"
98
+ style =" @style/ButtonStyleAdvancedTablet" />
99
+
100
+ <Button
101
+ android : id =" @+id/btn_ln"
102
+ android : text =" ln"
103
+ style =" @style/ButtonStyleAdvancedTablet" />
104
+
105
+ <Button
106
+ android : id =" @+id/btn_sqrt"
107
+ android : text =" sqrt"
108
+ style =" @style/ButtonStyleAdvancedTablet" />
109
+
110
+ <Button
111
+ android : id =" @+id/btn_x_squared"
112
+ android : text =" x^2"
113
+ style =" @style/ButtonStyleAdvancedTablet" />
114
+
115
+ <Button
116
+ android : id =" @+id/btn_x_to_the_y_power"
117
+ android : text =" x^y"
118
+ style =" @style/ButtonStyleAdvancedTablet" />
119
+
120
+ <Button
121
+ android : id =" @+id/btn_log"
122
+ android : text =" log"
123
+ style =" @style/ButtonStyleAdvancedTablet" />
124
+
125
+ <Button
126
+ android : id =" @+id/btn7"
127
+ android : text =" 7"
128
+ style =" @style/ButtonStyleAdvancedTablet" />
129
+
130
+ <Button
131
+ android : id =" @+id/btn8"
132
+ android : text =" 8"
133
+ style =" @style/ButtonStyleAdvancedTablet" />
134
+
135
+ <Button
136
+ android : id =" @+id/btn9"
137
+ android : text =" 9"
138
+ style =" @style/ButtonStyleAdvancedTablet" />
139
+
140
+ <Button
141
+ android : id =" @+id/btn_divide"
142
+ android : text =" ÷"
143
+ style =" @style/ButtonStyleAdvancedTablet" />
144
+
145
+ <Button
146
+ android : id =" @+id/btn4"
147
+ android : text =" 4"
148
+ style =" @style/ButtonStyleAdvancedTablet" />
149
+
150
+ <Button
151
+ android : id =" @+id/btn5"
152
+ android : text =" 5"
153
+ style =" @style/ButtonStyleAdvancedTablet" />
154
+
155
+ <Button
156
+ android : id =" @+id/btn6"
157
+ android : text =" 6"
158
+ style =" @style/ButtonStyleAdvancedTablet" />
159
+
160
+ <Button
161
+ android : id =" @+id/btn_multiply"
162
+ android : text =" ⨯"
163
+ style =" @style/ButtonStyleAdvancedTablet" />
164
+
165
+ <Button
166
+ android : id =" @+id/btn1"
167
+ android : text =" 1"
168
+ style =" @style/ButtonStyleAdvancedTablet" />
169
+
170
+ <Button
171
+ android : id =" @+id/btn2"
172
+ android : text =" 2"
173
+ style =" @style/ButtonStyleAdvancedTablet" />
174
+
175
+ <Button
176
+ android : id =" @+id/btn3"
177
+ android : text =" 3"
178
+ style =" @style/ButtonStyleAdvancedTablet" />
179
+
180
+ <Button
181
+ android : id =" @+id/btn_minus"
182
+ android : text =" —"
183
+ style =" @style/ButtonStyleAdvancedTablet" />
184
+
185
+ <Button
186
+ android : id =" @+id/btn_comma"
187
+ android : text =" ,"
188
+ style =" @style/ButtonStyleAdvancedTablet" />
189
+
190
+ <Button
191
+ android : id =" @+id/btn0"
192
+ android : text =" 0"
193
+ style =" @style/ButtonStyleAdvancedTablet" />
194
+
195
+ <Button
196
+ android : id =" @+id/btn_equals"
197
+ android : text =" ="
198
+ style =" @style/ButtonStyleAdvancedTablet" />
199
+
200
+ <Button
201
+ android : id =" @+id/btn_plus"
202
+ android : text =" +"
203
+ style =" @style/ButtonStyleAdvancedTablet" />
204
+
205
+ </GridLayout >
206
+
207
+ </LinearLayout >
0 commit comments