1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2015 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_advanced" 21 style="@style/PadLayoutStyle.Advanced" 22 android:rowCount="5" 23 android:columnCount="3" 24 android:background="@color/pad_advanced_background_color"> 25 26 <Button 27 android:id="@+id/toggle_inv" 28 style="@style/PadButtonStyle.Advanced.Text" 29 android:layout_row="0" 30 android:layout_column="0" 31 android:background="@drawable/pad_button_inverse_background" 32 android:contentDescription="@string/desc_inv_off" 33 android:text="@string/inv" /> 34 35 <Button 36 android:id="@+id/toggle_mode" 37 style="@style/PadButtonStyle.Advanced.Text" 38 android:layout_row="0" 39 android:layout_column="1" 40 android:contentDescription="@string/desc_switch_deg" 41 android:text="@string/mode_deg" /> 42 43 <Button 44 android:id="@+id/op_pct" 45 style="@style/PadButtonStyle.Advanced" 46 android:layout_row="0" 47 android:layout_column="2" 48 android:contentDescription="@string/desc_op_pct" 49 android:text="@string/op_pct" /> 50 51 <Button 52 android:id="@+id/fun_sin" 53 style="@style/PadButtonStyle.Advanced" 54 android:layout_row="1" 55 android:layout_column="0" 56 android:contentDescription="@string/desc_fun_sin" 57 android:text="@string/fun_sin" /> 58 59 <Button 60 android:id="@+id/fun_arcsin" 61 style="@style/PadButtonStyle.Advanced" 62 android:layout_row="1" 63 android:layout_column="0" 64 android:contentDescription="@string/desc_fun_arcsin" 65 android:fontFamily="sans-serif-medium" 66 android:text="@string/fun_arcsin" 67 android:visibility="gone" /> 68 69 <Button 70 android:id="@+id/fun_cos" 71 style="@style/PadButtonStyle.Advanced" 72 android:layout_row="1" 73 android:layout_column="1" 74 android:contentDescription="@string/desc_fun_cos" 75 android:text="@string/fun_cos" /> 76 77 <Button 78 android:id="@+id/fun_arccos" 79 style="@style/PadButtonStyle.Advanced" 80 android:layout_row="1" 81 android:layout_column="1" 82 android:contentDescription="@string/desc_fun_arccos" 83 android:fontFamily="sans-serif-medium" 84 android:text="@string/fun_arccos" 85 android:visibility="gone" /> 86 87 <Button 88 android:id="@+id/fun_tan" 89 style="@style/PadButtonStyle.Advanced" 90 android:layout_row="1" 91 android:layout_column="2" 92 android:contentDescription="@string/desc_fun_tan" 93 android:text="@string/fun_tan" /> 94 95 <Button 96 android:id="@+id/fun_arctan" 97 style="@style/PadButtonStyle.Advanced" 98 android:layout_row="1" 99 android:layout_column="2" 100 android:contentDescription="@string/desc_fun_arctan" 101 android:fontFamily="sans-serif-medium" 102 android:text="@string/fun_arctan" 103 android:visibility="gone" /> 104 105 <Button 106 android:id="@+id/fun_ln" 107 style="@style/PadButtonStyle.Advanced" 108 android:layout_row="2" 109 android:layout_column="0" 110 android:contentDescription="@string/desc_fun_ln" 111 android:text="@string/fun_ln" /> 112 113 <Button 114 android:id="@+id/fun_exp" 115 style="@style/PadButtonStyle.Advanced" 116 android:layout_row="2" 117 android:layout_column="0" 118 android:contentDescription="@string/desc_fun_exp" 119 android:fontFamily="sans-serif-medium" 120 android:text="@string/fun_exp" 121 android:visibility="gone" /> 122 123 <Button 124 android:id="@+id/fun_log" 125 style="@style/PadButtonStyle.Advanced" 126 android:layout_row="2" 127 android:layout_column="1" 128 android:contentDescription="@string/desc_fun_log" 129 android:text="@string/fun_log" /> 130 131 <Button 132 android:id="@+id/fun_10pow" 133 style="@style/PadButtonStyle.Advanced" 134 android:layout_row="2" 135 android:layout_column="1" 136 android:contentDescription="@string/desc_fun_10pow" 137 android:fontFamily="sans-serif-medium" 138 android:text="@string/fun_10pow" 139 android:visibility="gone" /> 140 141 <Button 142 android:id="@+id/op_fact" 143 style="@style/PadButtonStyle.Advanced" 144 android:layout_row="2" 145 android:layout_column="2" 146 android:contentDescription="@string/desc_op_fact" 147 android:text="@string/op_fact" /> 148 149 <Button 150 android:id="@+id/const_pi" 151 style="@style/PadButtonStyle.Advanced" 152 android:layout_row="3" 153 android:layout_column="0" 154 android:contentDescription="@string/desc_const_pi" 155 android:text="@string/const_pi" /> 156 157 <Button 158 android:id="@+id/const_e" 159 style="@style/PadButtonStyle.Advanced" 160 android:layout_row="3" 161 android:layout_column="1" 162 android:contentDescription="@string/desc_const_e" 163 android:text="@string/const_e" /> 164 165 <Button 166 android:id="@+id/op_pow" 167 style="@style/PadButtonStyle.Advanced" 168 android:layout_row="3" 169 android:layout_column="2" 170 android:contentDescription="@string/desc_op_pow" 171 android:text="@string/op_pow" /> 172 173 <Button 174 android:id="@+id/lparen" 175 style="@style/PadButtonStyle.Advanced" 176 android:layout_row="4" 177 android:layout_column="0" 178 android:contentDescription="@string/desc_lparen" 179 android:text="@string/lparen" /> 180 181 <Button 182 android:id="@+id/rparen" 183 style="@style/PadButtonStyle.Advanced" 184 android:layout_row="4" 185 android:layout_column="1" 186 android:contentDescription="@string/desc_rparen" 187 android:text="@string/rparen" /> 188 189 <Button 190 android:id="@+id/op_sqrt" 191 style="@style/PadButtonStyle.Advanced" 192 android:layout_row="4" 193 android:layout_column="2" 194 android:contentDescription="@string/desc_op_sqrt" 195 android:text="@string/op_sqrt" /> 196 197 <Button 198 android:id="@+id/op_sqr" 199 style="@style/PadButtonStyle.Advanced" 200 android:layout_row="4" 201 android:layout_column="2" 202 android:contentDescription="@string/desc_op_sqr" 203 android:fontFamily="sans-serif-medium" 204 android:text="@string/op_sqr" 205 android:visibility="gone" /> 206 207</GridLayout> 208