diff options
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/values/attrs.xml | 7 | ||||
-rw-r--r-- | java/res/xml-sw600dp/kbd_key_styles.xml | 2 | ||||
-rw-r--r-- | java/res/xml-sw768dp/kbd_key_styles.xml | 2 | ||||
-rw-r--r-- | java/res/xml/kbd_key_styles.xml | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 9358c9085..3275cd017 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -194,8 +194,11 @@ <attr name="moreKeys" format="string" /> <!-- Maximum column of more keys keyboard --> <attr name="maxMoreKeysColumn" format="integer" /> - <!-- Whether this is a functional key which has different key top than normal key. --> - <attr name="isFunctional" format="boolean" /> + <attr name="backgroundType" format="enum"> + <!-- This should be aligned with Key.BACKGROUND_TYPE_* --> + <enum name="normal" value="0" /> + <enum name="functional" value="1" /> + </attr> <!-- Whether this is a toggle key. --> <attr name="isSticky" format="boolean" /> <!-- Whether long-pressing on this key will make it repeat. --> diff --git a/java/res/xml-sw600dp/kbd_key_styles.xml b/java/res/xml-sw600dp/kbd_key_styles.xml index 2c31e27e4..dfc7409ad 100644 --- a/java/res/xml-sw600dp/kbd_key_styles.xml +++ b/java/res/xml-sw600dp/kbd_key_styles.xml @@ -24,7 +24,7 @@ <!-- Base key style for the functional key --> <key-style latin:styleName="functionalKeyStyle" - latin:isFunctional="true" /> + latin:backgroundType="functional" /> <!-- Base key style for the key which may have settings key as popup key --> <switch> <case diff --git a/java/res/xml-sw768dp/kbd_key_styles.xml b/java/res/xml-sw768dp/kbd_key_styles.xml index 6570ebccb..f7dcc2026 100644 --- a/java/res/xml-sw768dp/kbd_key_styles.xml +++ b/java/res/xml-sw768dp/kbd_key_styles.xml @@ -24,7 +24,7 @@ <!-- Functional key styles --> <key-style latin:styleName="functionalKeyStyle" - latin:isFunctional="true" /> + latin:backgroundType="functional" /> <key-style latin:styleName="shiftKeyStyle" latin:code="@integer/key_shift" diff --git a/java/res/xml/kbd_key_styles.xml b/java/res/xml/kbd_key_styles.xml index 84b1900f0..e1f68d4e2 100644 --- a/java/res/xml/kbd_key_styles.xml +++ b/java/res/xml/kbd_key_styles.xml @@ -24,7 +24,7 @@ <!-- Base key style for the functional key --> <key-style latin:styleName="functionalKeyStyle" - latin:isFunctional="true" /> + latin:backgroundType="functional" /> <!-- Base key style for the key which may have settings or tab key as popup key. --> <switch> <case |