1 <?xml version="1.0" encoding="utf-8"?> 2 3 <!-- 4 /* 5 * Copyright (C) 2011, The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 --> 20 21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 22 android:id="@+id/simplePad" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:orientation="vertical" 26 android:layout_gravity="center" 27 > 28 29 <LinearLayout 30 android:layout_weight="3" 31 android:layout_width="match_parent" 32 android:layout_height="0dp"> 33 <com.android.calculator2.ColorButton 34 android:id="@+id/digit7" 35 android:text="@string/digit7" 36 style="@style/digit_button_style" 37 /> 38 <com.android.calculator2.ColorButton 39 android:id="@+id/digit8" 40 android:text="@string/digit8" 41 style="@style/digit_button_style" 42 /> 43 <com.android.calculator2.ColorButton 44 android:id="@+id/digit9" 45 android:text="@string/digit9" 46 style="@style/digit_button_style" 47 /> 48 <com.android.calculator2.ColorButton 49 android:id="@+id/div" 50 android:text="@string/div" 51 style="@style/button_style" 52 android:contentDescription="@string/divDesc" 53 /> 54 </LinearLayout> 55 56 <LinearLayout 57 android:layout_weight="3" 58 android:layout_width="match_parent" 59 android:layout_height="0dp" 60 > 61 <com.android.calculator2.ColorButton 62 android:id="@+id/digit4" 63 android:text="@string/digit4" 64 style="@style/digit_button_style" 65 /> 66 <com.android.calculator2.ColorButton 67 android:id="@+id/digit5" 68 android:text="@string/digit5" 69 style="@style/digit_button_style" 70 /> 71 <com.android.calculator2.ColorButton 72 android:id="@+id/digit6" 73 android:text="@string/digit6" 74 style="@style/digit_button_style" 75 /> 76 <com.android.calculator2.ColorButton 77 android:id="@+id/mul" 78 android:text="@string/mul" 79 style="@style/button_style" 80 android:contentDescription="@string/mulDesc" 81 /> 82 </LinearLayout> 83 84 <LinearLayout 85 android:layout_weight="3" 86 android:layout_width="match_parent" 87 android:layout_height="0dp" 88 > 89 <com.android.calculator2.ColorButton 90 android:id="@+id/digit1" 91 android:text="@string/digit1" 92 style="@style/digit_button_style" 93 /> 94 <com.android.calculator2.ColorButton 95 android:id="@+id/digit2" 96 android:text="@string/digit2" 97 style="@style/digit_button_style" 98 /> 99 <com.android.calculator2.ColorButton 100 android:id="@+id/digit3" 101 android:text="@string/digit3" 102 style="@style/digit_button_style" 103 /> 104 <com.android.calculator2.ColorButton 105 android:id="@+id/minus" 106 android:text="@string/minus" 107 style="@style/button_style" 108 android:contentDescription="@string/minusDesc" 109 /> 110 </LinearLayout> 111 112 <LinearLayout 113 android:layout_weight="3" 114 android:layout_width="match_parent" 115 android:layout_height="0dp" 116 > 117 <com.android.calculator2.ColorButton 118 android:id="@+id/dot" 119 android:text="@string/dot" 120 style="@style/digit_button_style" 121 android:contentDescription="@string/dotDesc" 122 /> 123 <com.android.calculator2.ColorButton 124 android:id="@+id/digit0" 125 android:text="@string/digit0" 126 style="@style/digit_button_style" 127 /> 128 <com.android.calculator2.ColorButton 129 android:id="@+id/equal" 130 android:text="@string/equal" 131 style="@style/button_style" 132 android:contentDescription="@string/equalDesc" 133 /> 134 <com.android.calculator2.ColorButton 135 android:id="@+id/plus" 136 android:text="@string/plus" 137 style="@style/button_style" 138 android:contentDescription="@string/plusDesc" 139 /> 140 </LinearLayout> 141 </LinearLayout> 142