| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2016 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <androidx.gridlayout.widget.GridLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/pad_advanced" |
| style="@style/PadLayoutStyle.Advanced" |
| android:background="@color/pad_advanced_background_color" |
| app:rowCount="4" |
| app:columnCount="3"> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/toggle_mode" |
| style="@style/PadButtonStyle.SmallCaps" |
| android:contentDescription="@string/desc_switch_deg" |
| android:text="@string/mode_deg" |
| android:background="@color/pad_advanced_background_color" |
| app:layout_row="0" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/op_sqrt" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_op_sqrt" |
| android:text="@string/op_sqrt" |
| app:layout_row="0" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/op_sqr" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_op_sqr" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/op_sqr" |
| android:visibility="gone" |
| app:layout_row="0" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/const_pi" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_const_pi" |
| android:text="@string/const_pi" |
| app:layout_row="0" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/toggle_inv" |
| style="@style/PadButtonStyle.SmallCaps" |
| android:contentDescription="@string/desc_inv_off" |
| android:text="@string/inv" |
| app:layout_row="1" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/op_pow" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_op_pow" |
| android:text="@string/op_pow" |
| app:layout_row="1" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/op_fact" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_op_fact" |
| android:text="@string/op_fact" |
| app:layout_row="1" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_sin" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_sin" |
| android:text="@string/fun_sin" |
| app:layout_row="2" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_arcsin" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_arcsin" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/fun_arcsin" |
| android:visibility="gone" |
| app:layout_row="2" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_cos" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_cos" |
| android:text="@string/fun_cos" |
| app:layout_row="2" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_arccos" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_arccos" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/fun_arccos" |
| android:visibility="gone" |
| app:layout_row="2" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_tan" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_tan" |
| android:text="@string/fun_tan" |
| app:layout_row="2" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_arctan" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_arctan" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/fun_arctan" |
| android:visibility="gone" |
| app:layout_row="2" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/const_e" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_const_e" |
| android:text="@string/const_e" |
| app:layout_row="3" |
| app:layout_column="0" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_ln" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_ln" |
| android:text="@string/fun_ln" |
| app:layout_row="3" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_exp" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_exp" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/fun_exp" |
| android:visibility="gone" |
| app:layout_row="3" |
| app:layout_column="1" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_log" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_log" |
| android:text="@string/fun_log" |
| app:layout_row="3" |
| app:layout_column="2" /> |
| |
| <com.android.calculator2.HapticButton |
| android:id="@+id/fun_10pow" |
| style="@style/PadButtonStyle.SmallText.Background" |
| android:contentDescription="@string/desc_fun_10pow" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/fun_10pow" |
| android:visibility="gone" |
| app:layout_row="3" |
| app:layout_column="2" /> |
| |
| </androidx.gridlayout.widget.GridLayout> |