| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <androidx.gridlayout.widget.GridLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/pad_numeric" |
| style="@style/PadLayoutStyle.Numeric" |
| android:background="@color/pad_numeric_background_color" |
| app:rowCount="4" |
| app:columnCount="3"> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_7" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_7" |
| app:layout_row="0" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_8" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_8" |
| app:layout_row="0" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_9" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_9" |
| app:layout_row="0" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_4" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_4" |
| app:layout_row="1" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_5" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_5" |
| app:layout_row="1" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_6" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_6" |
| app:layout_row="1" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_1" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_1" |
| app:layout_row="2" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_2" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_2" |
| app:layout_row="2" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_3" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_3" |
| app:layout_row="2" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/dec_point" |
| style="@style/PadButtonStyle.Numeric" |
| android:contentDescription="@string/desc_dec_point" |
| app:layout_row="3" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/digit_0" |
| style="@style/PadButtonStyle.Numeric" |
| android:text="@string/digit_0" |
| app:layout_row="3" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/eq" |
| style="@style/PadButtonStyle.Numeric.Equals" |
| android:contentDescription="@string/desc_eq" |
| android:text="@string/eq" |
| app:layout_row="3" |
| app:layout_column="2" /> |
| |
| </androidx.gridlayout.widget.GridLayout> |