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 <android.support.v7.widget.GridLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/pad_operator" 22 style="@style/PadLayoutStyle.Operator" 23 android:background="@color/pad_operator_background_color" 24 app:rowCount="4" 25 app:columnCount="2"> 26 27 <Button 28 android:id="@+id/op_div" 29 style="@style/PadButtonStyle.Operator" 30 android:contentDescription="@string/desc_op_div" 31 android:text="@string/op_div" 32 app:layout_row="0" 33 app:layout_column="0" /> 34 35 <Button 36 android:id="@+id/del" 37 style="@style/PadButtonStyle.Operator.Text" 38 android:contentDescription="@string/desc_del" 39 android:text="@string/del" 40 app:layout_row="0" 41 app:layout_column="1" /> 42 43 <Button 44 android:id="@+id/clr" 45 style="@style/PadButtonStyle.Operator.Text" 46 android:contentDescription="@string/desc_clr" 47 android:text="@string/clr" 48 android:visibility="gone" 49 app:layout_row="0" 50 app:layout_column="1" /> 51 52 <Button 53 android:id="@+id/op_mul" 54 style="@style/PadButtonStyle.Operator" 55 android:contentDescription="@string/op_mul" 56 android:text="@string/op_mul" 57 app:layout_row="1" 58 app:layout_column="0" /> 59 60 <Button 61 android:id="@+id/op_sub" 62 style="@style/PadButtonStyle.Operator" 63 android:contentDescription="@string/desc_op_sub" 64 android:text="@string/op_sub" 65 app:layout_row="2" 66 app:layout_column="0" /> 67 68 <Button 69 android:id="@+id/op_add" 70 style="@style/PadButtonStyle.Operator" 71 android:contentDescription="@string/desc_op_add" 72 android:text="@string/op_add" 73 app:layout_row="3" 74 app:layout_column="0" /> 75 76 <Button 77 android:id="@+id/eq" 78 style="@style/PadButtonStyle.Operator" 79 android:contentDescription="@string/desc_eq" 80 android:text="@string/eq" 81 app:layout_row="3" 82 app:layout_column="1" /> 83 84 </android.support.v7.widget.GridLayout> 85