1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2014 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<GridLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/pad_numeric" 21 style="@style/PadLayoutStyle.Numeric" 22 android:rowCount="4" 23 android:columnCount="3" 24 android:background="@color/pad_numeric_background_color"> 25 26 <Button 27 android:id="@+id/digit_7" 28 style="@style/PadButtonStyle.Numeric" 29 android:layout_row="0" 30 android:layout_column="0" 31 android:text="@string/digit_7" /> 32 33 <Button 34 android:id="@+id/digit_8" 35 style="@style/PadButtonStyle.Numeric" 36 android:layout_row="0" 37 android:layout_column="1" 38 android:text="@string/digit_8" /> 39 40 <Button 41 android:id="@+id/digit_9" 42 style="@style/PadButtonStyle.Numeric" 43 android:layout_row="0" 44 android:layout_column="2" 45 android:text="@string/digit_9" /> 46 47 <Button 48 android:id="@+id/digit_4" 49 style="@style/PadButtonStyle.Numeric" 50 android:layout_row="1" 51 android:layout_column="0" 52 android:text="@string/digit_4" /> 53 54 <Button 55 android:id="@+id/digit_5" 56 style="@style/PadButtonStyle.Numeric" 57 android:layout_row="1" 58 android:layout_column="1" 59 android:text="@string/digit_5" /> 60 61 <Button 62 android:id="@+id/digit_6" 63 style="@style/PadButtonStyle.Numeric" 64 android:layout_row="1" 65 android:layout_column="2" 66 android:text="@string/digit_6" /> 67 68 <Button 69 android:id="@+id/digit_1" 70 style="@style/PadButtonStyle.Numeric" 71 android:layout_row="2" 72 android:layout_column="0" 73 android:text="@string/digit_1" /> 74 75 <Button 76 android:id="@+id/digit_2" 77 style="@style/PadButtonStyle.Numeric" 78 android:layout_row="2" 79 android:layout_column="1" 80 android:text="@string/digit_2" /> 81 82 <Button 83 android:id="@+id/digit_3" 84 style="@style/PadButtonStyle.Numeric" 85 android:layout_row="2" 86 android:layout_column="2" 87 android:text="@string/digit_3" /> 88 89 <Button 90 android:id="@+id/dec_point" 91 style="@style/PadButtonStyle.Numeric" 92 android:layout_row="3" 93 android:layout_column="0" 94 android:contentDescription="@string/desc_dec_point" 95 android:text="@string/dec_point" /> 96 97 <Button 98 android:id="@+id/digit_0" 99 style="@style/PadButtonStyle.Numeric" 100 android:layout_row="3" 101 android:layout_column="1" 102 android:text="@string/digit_0" /> 103 104 <Button 105 android:id="@+id/eq" 106 style="@style/PadButtonStyle.Numeric.Equals" 107 android:layout_row="3" 108 android:layout_column="2" 109 android:contentDescription="@string/desc_eq" 110 android:text="@string/eq" /> 111 112</GridLayout> 113