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 /> 53 </LinearLayout> 54 55 <LinearLayout 56 android:layout_weight="3" 57 android:layout_width="match_parent" 58 android:layout_height="0dp" 59 > 60 <com.android.calculator2.ColorButton 61 android:id="@+id/digit4" 62 android:text="@string/digit4" 63 style="@style/digit_button_style" 64 /> 65 <com.android.calculator2.ColorButton 66 android:id="@+id/digit5" 67 android:text="@string/digit5" 68 style="@style/digit_button_style" 69 /> 70 <com.android.calculator2.ColorButton 71 android:id="@+id/digit6" 72 android:text="@string/digit6" 73 style="@style/digit_button_style" 74 /> 75 <com.android.calculator2.ColorButton 76 android:id="@+id/mul" 77 android:text="@string/mul" 78 style="@style/button_style" 79 /> 80 </LinearLayout> 81 82 <LinearLayout 83 android:layout_weight="3" 84 android:layout_width="match_parent" 85 android:layout_height="0dp" 86 > 87 <com.android.calculator2.ColorButton 88 android:id="@+id/digit1" 89 android:text="@string/digit1" 90 style="@style/digit_button_style" 91 /> 92 <com.android.calculator2.ColorButton 93 android:id="@+id/digit2" 94 android:text="@string/digit2" 95 style="@style/digit_button_style" 96 /> 97 <com.android.calculator2.ColorButton 98 android:id="@+id/digit3" 99 android:text="@string/digit3" 100 style="@style/digit_button_style" 101 /> 102 <com.android.calculator2.ColorButton 103 android:id="@+id/minus" 104 android:text="@string/minus" 105 style="@style/button_style" 106 /> 107 </LinearLayout> 108 109 <LinearLayout 110 android:layout_weight="3" 111 android:layout_width="match_parent" 112 android:layout_height="0dp" 113 > 114 <com.android.calculator2.ColorButton 115 android:id="@+id/dot" 116 android:text="@string/dot" 117 style="@style/digit_button_style" 118 /> 119 <com.android.calculator2.ColorButton 120 android:id="@+id/digit0" 121 android:text="@string/digit0" 122 style="@style/digit_button_style" 123 /> 124 <com.android.calculator2.ColorButton 125 android:id="@+id/equal" 126 android:text="@string/equal" 127 style="@style/button_style" 128 /> 129 <com.android.calculator2.ColorButton 130 android:id="@+id/plus" 131 android:text="@string/plus" 132 style="@style/button_style" 133 /> 134 </LinearLayout> 135 </LinearLayout> 136