removing some more unused attributes

This commit is contained in:
tibbi 2022-01-21 18:07:44 +01:00
parent 4b45826480
commit d095e36912
6 changed files with 8 additions and 16 deletions

View File

@ -13,8 +13,6 @@
<attr name="keyTextSize" format="dimension" />
<!-- Size of the text for custom keys with some text and no icon. -->
<attr name="labelTextSize" format="dimension" />
<!-- Color to use for the label in a key. -->
<attr name="keyTextColor" format="color" />
<!-- Layout resource for key press feedback. -->
<attr name="keyPreviewLayout" format="reference" />
<!-- Height of the key press feedback popup. -->
@ -26,10 +24,10 @@
</declare-styleable>
<declare-styleable name="MyKeyboard">
<!-- Default width of a key, in pixels or percentage of display width. -->
<attr name="keyWidth" format="dimension|fraction" />
<!-- Default width of a key in percentage of display width. -->
<attr name="keyWidth" format="fraction" />
<!-- Default horizontal gap between keys. -->
<attr name="horizontalGap" format="dimension|fraction" />
<attr name="horizontalGap" format="fraction" />
</declare-styleable>
<declare-styleable name="MyKeyboard_Row">

View File

@ -4,5 +4,6 @@
<dimen name="top_small_number_margin_height">18dp</dimen>
<dimen name="key_height">60dp</dimen>
<dimen name="keyboard_text_size">22sp</dimen>
<dimen name="preview_text_size">26sp</dimen>
</resources>

View File

@ -8,8 +8,7 @@
<style name="Widget.KeyboardView" parent="Widget">
<item name="keyBackground">@drawable/keyboard_key_selector</item>
<item name="keyTextSize">22sp</item>
<item name="keyTextColor">#FFFFFFFF</item>
<item name="keyTextSize">@dimen/keyboard_text_size</item>
<item name="keyPreviewLayout">@layout/keyboard_key_preview</item>
<item name="keyPreviewHeight">60dp</item>
<item name="labelTextSize">16sp</item>

View File

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto"
app:keyBackground="@color/color_primary_dark"
app:keyTextColor="@color/color_accent">
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
<Row>
<Key
app:codes="113"

View File

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto"
app:keyBackground="@color/color_primary_dark"
app:keyTextColor="@color/color_accent">
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
<Row>
<Key
app:codes="49"

View File

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto"
app:keyBackground="@color/color_primary_dark"
app:keyTextColor="@color/color_accent">
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
<Row>
<Key
app:codes="126"