diff options
author | 2012-03-14 14:46:22 +0900 | |
---|---|---|
committer | 2012-03-14 19:36:24 +0900 | |
commit | 73a46bfeb7a109b49be196e5d679e44c9e66a2e8 (patch) | |
tree | a196115f0d73f747653167a79d95811379b1e9ca /java/res | |
parent | 02e70cf999585d92530fd2fe73c163deed914b2d (diff) | |
download | latinime-73a46bfeb7a109b49be196e5d679e44c9e66a2e8.tar.gz latinime-73a46bfeb7a109b49be196e5d679e44c9e66a2e8.tar.xz latinime-73a46bfeb7a109b49be196e5d679e44c9e66a2e8.zip |
Gray out "alt-code-while-typing" key icon while typing
Bug: 6128215
Change-Id: Ie9c13d9d38aad6e92cc465e22f3ef20c80e0a36a
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/anim/alt_code_key_while_typing_fadein.xml | 26 | ||||
-rw-r--r-- | java/res/anim/alt_code_key_while_typing_fadeout.xml | 26 | ||||
-rw-r--r-- | java/res/values/attrs.xml | 5 | ||||
-rw-r--r-- | java/res/values/config.xml | 2 | ||||
-rw-r--r-- | java/res/values/styles.xml | 4 |
5 files changed, 60 insertions, 3 deletions
diff --git a/java/res/anim/alt_code_key_while_typing_fadein.xml b/java/res/anim/alt_code_key_while_typing_fadein.xml new file mode 100644 index 000000000..3f5fd5d48 --- /dev/null +++ b/java/res/anim/alt_code_key_while_typing_fadein.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2012, 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. +*/ +--> + +<animator + xmlns:android="http://schemas.android.com/apk/res/android" + android:valueType="intType" + android:duration="100" + android:valueFrom="128" + android:valueTo="255" /> diff --git a/java/res/anim/alt_code_key_while_typing_fadeout.xml b/java/res/anim/alt_code_key_while_typing_fadeout.xml new file mode 100644 index 000000000..88deb3120 --- /dev/null +++ b/java/res/anim/alt_code_key_while_typing_fadeout.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2012, 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. +*/ +--> + +<animator + xmlns:android="http://schemas.android.com/apk/res/android" + android:valueType="intType" + android:duration="400" + android:valueFrom="255" + android:valueTo="128" /> diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index e56778a69..e619ad0a8 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -134,6 +134,9 @@ <attr name="spacebarTextShadowColor" format="color" /> <!-- Fadeout animator for spacebar language label. --> <attr name="languageOnSpacebarFadeoutAnimator" format="reference" /> + <!-- Fadeout and fadein animator for altCodeWhileTyping keys. --> + <attr name="altCodeKeyWhileTypingFadeoutAnimator" format="reference" /> + <attr name="altCodeKeyWhileTypingFadeinAnimator" format="reference" /> <!-- Key detection hysteresis distance. --> <attr name="keyHysteresisDistance" format="dimension" /> <!-- Touch noise threshold time in millisecond --> @@ -153,7 +156,7 @@ <!-- Long press timeout of space key in millisecond. --> <attr name="longPressSpaceKeyTimeout" format="integer" /> <!-- Ignore special key timeout while typing in millisecond. --> - <attr name="ignoreSpecialKeyTimeout" format="integer" /> + <attr name="ignoreAltCodeKeyTimeout" format="integer" /> <!-- More keys keyboard will shown at touched point. --> <attr name="showMoreKeysKeyboardAtTouchedPoint" format="boolean" /> </declare-styleable> diff --git a/java/res/values/config.xml b/java/res/values/config.xml index a02b84ff0..c51800fb0 100644 --- a/java/res/values/config.xml +++ b/java/res/values/config.xml @@ -65,7 +65,7 @@ <!-- Long pressing space will invoke IME switcher if > 0, never invoke IME switcher if == 0 --> <integer name="config_long_press_space_key_timeout"> @integer/config_long_press_key_timeout</integer> - <integer name="config_ignore_special_key_timeout">700</integer> + <integer name="config_ignore_alt_code_key_timeout">700</integer> <!-- Showing more keys keyboard, just above the touched point if true, aligned to the key if false --> <bool name="config_show_more_keys_keyboard_at_touched_point">false</bool> diff --git a/java/res/values/styles.xml b/java/res/values/styles.xml index 741ad99c9..7d8b7ddf2 100644 --- a/java/res/values/styles.xml +++ b/java/res/values/styles.xml @@ -76,9 +76,11 @@ <item name="longPressKeyTimeout">@integer/config_long_press_key_timeout</item> <item name="longPressShiftKeyTimeout">@integer/config_long_press_shift_key_timeout</item> <item name="longPressSpaceKeyTimeout">@integer/config_long_press_space_key_timeout</item> - <item name="ignoreSpecialKeyTimeout">@integer/config_ignore_special_key_timeout</item> + <item name="ignoreAltCodeKeyTimeout">@integer/config_ignore_alt_code_key_timeout</item> <item name="showMoreKeysKeyboardAtTouchedPoint">@bool/config_show_more_keys_keyboard_at_touched_point</item> <item name="languageOnSpacebarFadeoutAnimator">@anim/language_on_spacebar_fadeout</item> + <item name="altCodeKeyWhileTypingFadeoutAnimator">@anim/alt_code_key_while_typing_fadeout</item> + <item name="altCodeKeyWhileTypingFadeinAnimator">@anim/alt_code_key_while_typing_fadein</item> </style> <style name="LatinKeyboardView" |