|
61 | 61 | android:layout_width="0dp" |
62 | 62 | android:layout_height="match_parent" |
63 | 63 | android:layout_weight="1" |
64 | | - android:onClick="onDigit" |
| 64 | + android:onClick="onOperator" |
65 | 65 | android:text="@string/divide" |
66 | 66 | android:textSize="20sp" |
67 | 67 | tools:ignore="ButtonStyle,NestedWeights" /> |
|
113 | 113 | android:layout_width="0dp" |
114 | 114 | android:layout_height="match_parent" |
115 | 115 | android:layout_weight="1" |
116 | | - android:onClick="onDigit" |
| 116 | + android:onClick="onOperator" |
117 | 117 | android:text="@string/multi" |
118 | 118 | android:textSize="20sp" |
119 | 119 | tools:ignore="ButtonStyle,NestedWeights" /> |
|
165 | 165 | android:layout_width="0dp" |
166 | 166 | android:layout_height="match_parent" |
167 | 167 | android:layout_weight="1" |
168 | | - android:onClick="onDigit" |
| 168 | + android:onClick="onOperator" |
169 | 169 | android:text="@string/sub" |
170 | 170 | android:textSize="20sp" |
171 | 171 | tools:ignore="ButtonStyle,NestedWeights" /> |
|
187 | 187 | android:layout_width="0dp" |
188 | 188 | android:layout_height="match_parent" |
189 | 189 | android:layout_weight="1" |
190 | | - android:onClick="onDigit" |
| 190 | + android:onClick="onDecimalPoint" |
191 | 191 | android:text="@string/dot" |
192 | 192 | android:textSize="20sp" |
193 | 193 | tools:ignore="ButtonStyle,NestedWeights" /> |
|
207 | 207 | android:layout_width="0dp" |
208 | 208 | android:layout_height="match_parent" |
209 | 209 | android:layout_weight="1" |
210 | | - android:onClick="onDigit" |
| 210 | + android:onClick="onClear" |
211 | 211 | android:text="@string/clear" |
212 | 212 | android:textSize="20sp" |
213 | 213 | tools:ignore="ButtonStyle,NestedWeights" /> |
|
217 | 217 | android:layout_width="0dp" |
218 | 218 | android:layout_height="match_parent" |
219 | 219 | android:layout_weight="1" |
220 | | - android:onClick="onDigit" |
| 220 | + android:onClick="onOperator" |
221 | 221 | android:text="@string/plus" |
222 | 222 | android:textSize="20sp" |
223 | 223 | tools:ignore="ButtonStyle,NestedWeights" /> |
|
239 | 239 | android:layout_width="0dp" |
240 | 240 | android:layout_height="match_parent" |
241 | 241 | android:layout_weight="1" |
242 | | - android:onClick="onDigit" |
| 242 | + android:onClick="onEqual" |
243 | 243 | android:text="@string/equal" |
244 | 244 | android:textSize="30sp" |
245 | 245 | tools:ignore="ButtonStyle,NestedWeights" /> |
|
0 commit comments