| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2014 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. |
| --> |
| |
| <resources xmlns:android="http://schemas.android.com/apk/res/android"> |
| |
| <style name="DisplayTextStyle" parent="@android:style/Widget.Material.Light.TextView"> |
| <item name="android:cursorVisible">false</item> |
| <item name="fontFamily">sans-serif</item> |
| <item name="android:includeFontPadding">false</item> |
| <item name="android:gravity">bottom|end</item> |
| <item name="android:textAlignment">viewEnd</item> |
| <item name="android:fontFeatureSettings">tnum, cv03, cv04</item> |
| </style> |
| |
| <style name="DisplayTextStyle.Formula"> |
| <item name="android:paddingTop">@dimen/formula_padding_top</item> |
| <item name="android:paddingBottom">@dimen/formula_padding_bottom</item> |
| <item name="android:paddingStart">@dimen/formula_padding_start</item> |
| <item name="android:paddingEnd">@dimen/formula_padding_end</item> |
| <item name="android:gravity">bottom</item> |
| <item name="minTextSize">@dimen/formula_min_textsize</item> |
| <item name="maxTextSize">@dimen/formula_max_textsize</item> |
| <item name="stepTextSize">@dimen/formula_step_textsize</item> |
| <item name="android:fontFeatureSettings">tnum, cv03, cv04</item> |
| </style> |
| |
| <style name="DisplayTextStyle.Result"> |
| <item name="android:paddingTop">@dimen/result_padding_top</item> |
| <item name="android:paddingBottom">@dimen/result_padding_bottom</item> |
| <item name="android:paddingStart">@dimen/result_padding_start</item> |
| <item name="android:paddingEnd">@dimen/result_padding_end</item> |
| <item name="android:gravity">bottom</item> |
| <item name="android:textSize">@dimen/result_textsize</item> |
| <item name="android:fontFeatureSettings">tnum, cv03, cv04</item> |
| </style> |
| |
| <style name="HistoryItemTextStyle" parent="DisplayTextStyle"> |
| <item name="android:layout_gravity">bottom|end</item> |
| <item name="android:paddingTop">@dimen/history_item_text_padding_top</item> |
| <item name="android:paddingBottom">@dimen/history_item_text_padding_bottom</item> |
| <!-- Note: result_padding_start == formula_padding_start. --> |
| <item name="android:paddingStart">@dimen/result_padding_start</item> |
| <item name="android:paddingEnd">@dimen/result_padding_end</item> |
| <item name="android:textSize">@dimen/result_textsize</item> |
| </style> |
| |
| <style name="PadButtonStyle" parent="@android:style/Widget.Material.Light.Button.Borderless"> |
| <item name="android:layout_width">0dip</item> |
| <item name="android:layout_height">0dip</item> |
| <item name="background">@drawable/pad_button_background</item> |
| <item name="fontFamily">sans-serif</item> |
| <item name="android:gravity">center</item> |
| <item name="android:includeFontPadding">false</item> |
| <item name="android:minWidth">0dip</item> |
| <item name="android:minHeight">0dip</item> |
| <item name="android:onClick">onButtonClick</item> |
| <item name="textAllCaps">false</item> |
| <item name="android:textColor">@color/pad_button_text_color</item> |
| <item name="android:fontFeatureSettings">tnum, cv03, cv04</item> |
| |
| <!-- Attributes from androidx.appcompat.gridlayout --> |
| <item name="layout_gravity">fill</item> |
| <item name="layout_rowWeight">1</item> |
| <item name="layout_columnWeight">1</item> |
| </style> |
| |
| <style name="PadButtonStyle.Advanced"> |
| <item name="background">@drawable/pad_button_advanced_background</item> |
| <item name="android:textColor">@color/pad_button_advanced_text_color</item> |
| <item name="android:textSize">14dip</item> |
| </style> |
| |
| <style name="PadButtonStyle.Advanced.Text"> |
| <item name="textAllCaps">true</item> |
| <item name="android:textSize">12dip</item> |
| </style> |
| |
| <style name="PadButtonStyle.Numeric"> |
| <item name="android:textSize">16dip</item> |
| </style> |
| |
| <style name="PadButtonStyle.Numeric.Equals"> |
| <item name="android:visibility">visible</item> |
| </style> |
| |
| <style name="PadButtonStyle.Operator"> |
| <item name="android:textSize">14dip</item> |
| </style> |
| |
| <style name="PadButtonStyle.Operator.Text"> |
| <item name="textAllCaps">true</item> |
| <item name="android:textSize">12dip</item> |
| </style> |
| |
| <style name="PadLayoutStyle"> |
| <item name="android:layout_width">match_parent</item> |
| <item name="android:layout_height">match_parent</item> |
| </style> |
| |
| <style name="PadLayoutStyle.Advanced"> |
| <item name="elevation">4dip</item> |
| <item name="android:paddingTop">2dip</item> |
| <item name="android:paddingBottom">8dip</item> |
| <item name="android:paddingStart">18dip</item> |
| <item name="android:paddingEnd">18dip</item> |
| </style> |
| |
| <style name="PadLayoutStyle.Numeric"> |
| <item name="android:layout_width">0dip</item> |
| <item name="android:layout_weight">7</item> |
| <item name="android:paddingTop">2dip</item> |
| <item name="android:paddingBottom">8dip</item> |
| <item name="android:paddingStart">8dip</item> |
| <item name="android:paddingEnd">8dip</item> |
| </style> |
| |
| <style name="PadLayoutStyle.Operator"> |
| <item name="android:layout_width">0dip</item> |
| <item name="android:layout_weight">3</item> |
| <item name="android:paddingTop">2dip</item> |
| <item name="android:paddingBottom">8dip</item> |
| <item name="android:paddingStart">4dip</item> |
| <item name="android:paddingEnd">28dip</item> |
| </style> |
| |
| </resources> |