| <?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="Widget.MaterialComponents.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="Widget.Material3.Button"> |
| <item name="android:layout_width">0dip</item> |
| <item name="android:layout_height">0dip</item> |
| <item name="android:gravity">center</item> |
| <item name="android:includeFontPadding">false</item> |
| <item name="android:textSize">32sp</item> |
| <item name="android:onClick">onButtonClick</item> |
| <item name="android:fontFeatureSettings">tnum, cv03, cv04</item> |
| <item name="android:layout_marginHorizontal">4dp</item> |
| </style> |
| |
| <style name="PadButtonStyle.Caps"> |
| <item name="textAllCaps">true</item> |
| </style> |
| |
| <style name="PadButtonStyle.Image"> |
| <item name="iconGravity">textStart</item> |
| <item name="iconPadding">0dp</item> |
| <item name="iconSize">32dp</item> |
| </style> |
| |
| <style name="PadButtonStyle.SmallCaps"> |
| <item name="textAllCaps">true</item> |
| <item name="android:textSize">16sp</item> |
| </style> |
| |
| <style name="PadButtonStyle.SmallText"> |
| <item name="android:textSize">18sp</item> |
| <item name="android:layout_marginHorizontal">2dp</item> |
| </style> |
| |
| <style name="PadLayoutStyle"> |
| <item name="android:paddingTop">8dip</item> |
| <item name="android:paddingBottom">8dip</item> |
| <item name="android:paddingStart">8dip</item> |
| <item name="android:paddingEnd">8dip</item> |
| </style> |
| |
| <style name="PadLayoutStyle.Advanced"> |
| <item name="android:paddingTop">8dip</item> |
| <item name="android:paddingBottom">8dip</item> |
| <item name="android:paddingStart">16dip</item> |
| <item name="android:paddingEnd">16dip</item> |
| </style> |
| |
| </resources> |