am 1f4612fc
: Remove obsolete theme resources
* commit '1f4612fc5434e5b223d6f6c1ef77fb5fae0d32ee': Remove obsolete theme resources
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 729 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 1,008 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 800 B |
Before Width: | Height: | Size: 539 B |
Before Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 834 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 729 B |
Before Width: | Height: | Size: 998 B |
Before Width: | Height: | Size: 787 B |
Before Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB |
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- Toggle keys. Use checkable/checked state. -->
|
||||
<item android:state_checkable="true" android:state_checked="true"
|
||||
android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_pressed_on" />
|
||||
<item android:state_checkable="true" android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_fulltrans_normal" />
|
||||
<item android:state_checkable="true" android:state_checked="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_normal_on" />
|
||||
<item android:state_checkable="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_fulltrans_pressed" />
|
||||
|
||||
<!-- Empty background keys. -->
|
||||
<item android:state_empty="true"
|
||||
android:drawable="@drawable/transparent" />
|
||||
|
||||
<!-- Normal keys. -->
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_fulltrans_normal" />
|
||||
<item android:drawable="@drawable/btn_keyboard_key_fulltrans_pressed" />
|
||||
</selector>
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- Functional keys. -->
|
||||
<item android:state_single="true" android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_fulltrans_pressed" />
|
||||
<item android:state_single="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_normal_stone" />
|
||||
|
||||
<!-- Action keys. -->
|
||||
<item android:state_active="true" android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_fulltrans_pressed" />
|
||||
<item android:state_active="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_normal_stone" />
|
||||
|
||||
<!-- Toggle keys. Use checkable/checked state. -->
|
||||
<item android:state_checkable="true" android:state_checked="true"
|
||||
android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_normal_on_stone" />
|
||||
<item android:state_checkable="true" android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_normal_off_stone" />
|
||||
<item android:state_checkable="true" android:state_checked="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_normal_on_stone" />
|
||||
<item android:state_checkable="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_normal_off_stone" />
|
||||
|
||||
<!-- Empty background keys. -->
|
||||
<item android:state_empty="true"
|
||||
android:drawable="@drawable/transparent" />
|
||||
|
||||
<!-- Normal keys. -->
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_keyboard_key_fulltrans_pressed" />
|
||||
<item android:drawable="@drawable/btn_keyboard_key_normal_stone" />
|
||||
</selector>
|
|
@ -31,9 +31,6 @@
|
|||
<fraction name="key_bottom_gap">4.330%p</fraction>
|
||||
<fraction name="key_horizontal_gap">0.405%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_stone">5.010%p</fraction>
|
||||
<fraction name="key_horizontal_gap_stone">1.159%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_gb">5.941%p</fraction>
|
||||
<fraction name="key_horizontal_gap_gb">0.997%p</fraction>
|
||||
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
<fraction name="key_bottom_gap">4.911%p</fraction>
|
||||
<fraction name="key_horizontal_gap">1.284%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_stone">4.355%p</fraction>
|
||||
<fraction name="key_horizontal_gap_stone">1.505%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_gb">5.200%p</fraction>
|
||||
<fraction name="key_horizontal_gap_gb">1.447%p</fraction>
|
||||
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
<bool name="config_auto_correction_spacebar_led_enabled">false</bool>
|
||||
<!-- The language is never displayed if == 0, always displayed if < 0 -->
|
||||
<integer name="config_delay_before_fadeout_language_on_spacebar">1200</integer>
|
||||
<!-- This configuration is the index of the array {@link KeyboardSwitcher.KEYBOARD_THEMES}. -->
|
||||
<string name="config_default_keyboard_theme_index" translatable="false">5</string>
|
||||
<integer name="config_max_more_keys_column">5</integer>
|
||||
<!--
|
||||
Configuration for MainKeyboardView
|
||||
|
|
|
@ -32,9 +32,6 @@
|
|||
<fraction name="key_bottom_gap">3.750%p</fraction>
|
||||
<fraction name="key_horizontal_gap">1.857%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_stone">3.75%p</fraction>
|
||||
<fraction name="key_horizontal_gap_stone">1.602%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_gb">4.625%p</fraction>
|
||||
<fraction name="key_horizontal_gap_gb">2.113%p</fraction>
|
||||
|
||||
|
|
|
@ -30,9 +30,6 @@
|
|||
<fraction name="key_bottom_gap">4.103%p</fraction>
|
||||
<fraction name="key_horizontal_gap">1.034%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_stone">3.379%p</fraction>
|
||||
<fraction name="key_horizontal_gap_stone">1.062%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_gb">3.896%p</fraction>
|
||||
<fraction name="key_horizontal_gap_gb">1.195%p</fraction>
|
||||
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
<bool name="config_default_key_preview_popup">false</bool>
|
||||
<bool name="config_default_sound_enabled">true</bool>
|
||||
<bool name="config_auto_correction_spacebar_led_enabled">false</bool>
|
||||
<!-- This configuration is the index of the array {@link KeyboardSwitcher.KEYBOARD_THEMES}. -->
|
||||
<string name="config_default_keyboard_theme_index" translatable="false">5</string>
|
||||
<integer name="config_max_more_keys_column">5</integer>
|
||||
<!--
|
||||
Configuration for MainKeyboardView
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
<fraction name="key_bottom_gap">4.270%p</fraction>
|
||||
<fraction name="key_horizontal_gap">1.551%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_stone">3.75%p</fraction>
|
||||
<fraction name="key_horizontal_gap_stone">1.059%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_gb">4.687%p</fraction>
|
||||
<fraction name="key_horizontal_gap_gb">1.272%p</fraction>
|
||||
|
||||
|
|
|
@ -29,16 +29,6 @@
|
|||
<color name="spacebar_text_shadow_color_default">#80000000</color>
|
||||
<color name="typed_word_color_default">@android:color/white</color>
|
||||
<color name="gesture_floating_preview_color_default">#C0000000</color>
|
||||
<!-- Color resources for Stone theme. -->
|
||||
<color name="key_text_color_stone">@android:color/black</color>
|
||||
<color name="key_text_shadow_color_stone">@android:color/white</color>
|
||||
<color name="key_text_inactivated_color_stone">#FF808080</color>
|
||||
<color name="key_hint_letter_color_stone">#80000000</color>
|
||||
<color name="key_hint_label_color_stone">#E0000000</color>
|
||||
<color name="key_shifted_letter_hint_inactivated_color_stone">#66000000</color>
|
||||
<color name="key_shifted_letter_hint_activated_color_stone">#CC000000</color>
|
||||
<color name="spacebar_text_color_stone">@android:color/black</color>
|
||||
<color name="spacebar_text_shadow_color_stone">#D0FFFFFF</color>
|
||||
<!-- Color resources for IceCreamSandwich theme. -->
|
||||
<!-- android:color/holo_blue_light value is #FF33B5E5 -->
|
||||
<color name="highlight_color_ics">#FF33B5E5</color>
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<integer name="config_keyboard_grid_height">16</integer>
|
||||
<integer name="config_double_space_period_timeout">1100</integer>
|
||||
<!-- This configuration is the index of the array {@link KeyboardSwitcher.KEYBOARD_THEMES}. -->
|
||||
<string name="config_default_keyboard_theme_index" translatable="false">5</string>
|
||||
<string name="config_default_keyboard_theme_index" translatable="false">0</string>
|
||||
<integer name="config_max_more_keys_column">5</integer>
|
||||
|
||||
<!--
|
||||
|
|
|
@ -36,11 +36,6 @@
|
|||
<fraction name="key_bottom_gap">6.250%p</fraction>
|
||||
<fraction name="key_horizontal_gap">1.352%p</fraction>
|
||||
|
||||
<fraction name="keyboard_top_padding_stone">1.556%p</fraction>
|
||||
<fraction name="keyboard_bottom_padding_stone">0.778%p</fraction>
|
||||
<fraction name="key_bottom_gap_stone">7.506%p</fraction>
|
||||
<fraction name="key_horizontal_gap_stone">1.739%p</fraction>
|
||||
|
||||
<fraction name="key_bottom_gap_gb">6.495%p</fraction>
|
||||
<fraction name="key_horizontal_gap_gb">1.971%p</fraction>
|
||||
|
||||
|
|
|
@ -98,29 +98,17 @@
|
|||
<string name="prefs_force_non_distinct_multitouch">Force non-distinct multitouch</string>
|
||||
|
||||
<!-- Keyboard theme names -->
|
||||
<string name="layout_basic">Basic</string>
|
||||
<string name="layout_high_contrast">Basic (High Contrast)</string>
|
||||
<string name="layout_stone_bold">Stone (bold)</string>
|
||||
<string name="layout_stone_normal">Stone (normal)</string>
|
||||
<string name="layout_gingerbread">Gingerbread</string>
|
||||
<string name="layout_ics">IceCreamSandwich</string>
|
||||
|
||||
<!-- For keyboard theme switcher dialog -->
|
||||
<string-array name="keyboard_layout_modes">
|
||||
<item>@string/layout_basic</item>
|
||||
<item>@string/layout_high_contrast</item>
|
||||
<item>@string/layout_stone_normal</item>
|
||||
<item>@string/layout_stone_bold</item>
|
||||
<item>@string/layout_gingerbread</item>
|
||||
<item>@string/layout_ics</item>
|
||||
<item>@string/layout_gingerbread</item>
|
||||
</string-array>
|
||||
<string-array name="keyboard_layout_modes_values">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Subtype locale display name exceptions.
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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>
|
||||
<style name="KeyboardIcons.Black">
|
||||
<!-- Keyboard icons -->
|
||||
<!-- TODO: The following holo icon for phone (drawable-hdpi and drawable-xhdpi) are too
|
||||
ambiguous.
|
||||
sym_bkeyboard_voice_off
|
||||
-->
|
||||
<item name="iconShiftKey">@drawable/sym_bkeyboard_shift</item>
|
||||
<item name="iconDeleteKey">@drawable/sym_bkeyboard_delete</item>
|
||||
<item name="iconSettingsKey">@drawable/sym_bkeyboard_settings</item>
|
||||
<item name="iconSpaceKey">@drawable/sym_bkeyboard_space</item>
|
||||
<item name="iconEnterKey">@drawable/sym_bkeyboard_return</item>
|
||||
<item name="iconSearchKey">@drawable/sym_bkeyboard_search</item>
|
||||
<item name="iconTabKey">@drawable/sym_bkeyboard_tab</item>
|
||||
<item name="iconShortcutKey">@drawable/sym_bkeyboard_mic</item>
|
||||
<item name="iconShortcutForLabel">@drawable/sym_bkeyboard_label_mic</item>
|
||||
<item name="iconSpaceKeyForNumberLayout">@drawable/sym_bkeyboard_space</item>
|
||||
<item name="iconShiftKeyShifted">@drawable/sym_bkeyboard_shift_locked</item>
|
||||
<item name="iconShortcutKeyDisabled">@drawable/sym_bkeyboard_voice_off</item>
|
||||
<item name="iconTabKeyPreview">@drawable/sym_keyboard_feedback_tab</item>
|
||||
<!-- TODO: Needs dedicated black theme globe icon -->
|
||||
<item name="iconLanguageSwitchKey">@drawable/sym_keyboard_language_switch</item>
|
||||
<!-- TODO: Needs dedicated black theme ZWNJ and ZWJ icons -->
|
||||
<item name="iconZwnjKey">@drawable/sym_keyboard_zwnj_holo</item>
|
||||
<item name="iconZwjKey">@drawable/sym_keyboard_zwj_holo</item>
|
||||
<item name="iconEmojiKey">@drawable/ic_emoji_light</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -15,6 +15,7 @@
|
|||
-->
|
||||
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- TODO: Remove "Basic" theme and make "IceCreamSandwich" default -->
|
||||
<!-- Theme "Basic" -->
|
||||
<style name="Keyboard">
|
||||
<!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
|
||||
|
@ -168,107 +169,6 @@
|
|||
<style name="SuggestionBackgroundStyle">
|
||||
<item name="android:background">@drawable/btn_suggestion</item>
|
||||
</style>
|
||||
<!-- Theme "Basic high contrast" -->
|
||||
<style
|
||||
name="Keyboard.HighContrast"
|
||||
parent="Keyboard"
|
||||
>
|
||||
<!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
|
||||
<item name="themeId">1</item>
|
||||
</style>
|
||||
<style
|
||||
name="KeyboardView.HighContrast"
|
||||
parent="KeyboardView"
|
||||
>
|
||||
<item name="android:background">@android:color/black</item>
|
||||
<item name="keyBackground">@drawable/btn_keyboard_key3</item>
|
||||
</style>
|
||||
<style
|
||||
name="MainKeyboardView.HighContrast"
|
||||
parent="KeyboardView.HighContrast"
|
||||
>
|
||||
<item name="autoCorrectionSpacebarLedEnabled">true</item>
|
||||
<item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
|
||||
<item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
|
||||
<item name="spacebarTextColor">@color/spacebar_text_color_default</item>
|
||||
<item name="spacebarTextShadowColor">@color/spacebar_text_shadow_color_default</item>
|
||||
</style>
|
||||
<!-- Theme "Stone" -->
|
||||
<style
|
||||
name="Keyboard.Stone"
|
||||
parent="Keyboard"
|
||||
>
|
||||
<!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
|
||||
<item name="themeId">6</item>
|
||||
<item name="keyboardTopPadding">@fraction/keyboard_top_padding_stone</item>
|
||||
<item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding_stone</item>
|
||||
<item name="horizontalGap">@fraction/key_horizontal_gap_stone</item>
|
||||
<item name="verticalGap">@fraction/key_bottom_gap_stone</item>
|
||||
</style>
|
||||
<style
|
||||
name="KeyboardView.Stone"
|
||||
parent="KeyboardView"
|
||||
>
|
||||
<item name="keyBackground">@drawable/btn_keyboard_key_stone</item>
|
||||
<item name="keyTextColor">@color/key_text_color_stone</item>
|
||||
<item name="keyTextInactivatedColor">@color/key_text_inactivated_color_stone</item>
|
||||
<item name="keyHintLetterColor">@color/key_hint_letter_color_stone</item>
|
||||
<item name="keyHintLabelColor">@color/key_hint_label_color_stone</item>
|
||||
<item name="keyShiftedLetterHintInactivatedColor">@color/key_shifted_letter_hint_inactivated_color_stone</item>
|
||||
<item name="keyShiftedLetterHintActivatedColor">@color/key_shifted_letter_hint_activated_color_stone</item>
|
||||
<item name="keyTextShadowColor">@color/key_text_shadow_color_stone</item>
|
||||
</style>
|
||||
<style
|
||||
name="MainKeyboardView.Stone"
|
||||
parent="KeyboardView.Stone"
|
||||
>
|
||||
<item name="autoCorrectionSpacebarLedEnabled">true</item>
|
||||
<item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
|
||||
<item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
|
||||
<item name="spacebarTextColor">@color/spacebar_text_color_stone</item>
|
||||
<item name="spacebarTextShadowColor">@color/spacebar_text_shadow_color_stone</item>
|
||||
</style>
|
||||
<style
|
||||
name="MoreKeysKeyboard.Stone"
|
||||
parent="Keyboard.Stone"
|
||||
>
|
||||
<item name="keyboardTopPadding">0%p</item>
|
||||
<item name="keyboardBottomPadding">0%p</item>
|
||||
<item name="horizontalGap">0%p</item>
|
||||
<item name="touchPositionCorrectionData">@null</item>
|
||||
</style>
|
||||
<style
|
||||
name="MoreKeysKeyboardView.Stone"
|
||||
parent="MoreKeysKeyboardView"
|
||||
>
|
||||
<item name="keyBackground">@drawable/btn_keyboard_key_stone</item>
|
||||
<item name="keyTextColor">@color/key_text_color_stone</item>
|
||||
<item name="keyTextShadowColor">@color/key_text_shadow_color_stone</item>
|
||||
</style>
|
||||
<!-- Theme "Stone bold" -->
|
||||
<style
|
||||
name="Keyboard.Stone.Bold"
|
||||
parent="Keyboard.Stone"
|
||||
>
|
||||
<!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
|
||||
<item name="themeId">7</item>
|
||||
</style>
|
||||
<style
|
||||
name="KeyboardView.Stone.Bold"
|
||||
parent="KeyboardView.Stone"
|
||||
>
|
||||
<item name="keyTypeface">bold</item>
|
||||
</style>
|
||||
<style
|
||||
name="MainKeyboardView.Stone.Bold"
|
||||
parent="KeyboardView.Stone.Bold"
|
||||
>
|
||||
<item name="autoCorrectionSpacebarLedEnabled">true</item>
|
||||
<item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
|
||||
<item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
|
||||
<item name="spacebarTextColor">@color/spacebar_text_color_stone</item>
|
||||
<item name="spacebarTextShadowColor">@color/spacebar_text_shadow_color_stone</item>
|
||||
</style>
|
||||
<!-- Theme "Gingerbread" -->
|
||||
<style
|
||||
name="Keyboard.Gingerbread"
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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>
|
||||
<style name="KeyboardTheme.HighContrast" parent="KeyboardIcons">
|
||||
<item name="keyboardStyle">@style/Keyboard.HighContrast</item>
|
||||
<item name="keyboardViewStyle">@style/KeyboardView.HighContrast</item>
|
||||
<item name="mainKeyboardViewStyle">@style/MainKeyboardView.HighContrast</item>
|
||||
<item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard</item>
|
||||
<item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView</item>
|
||||
<item name="moreKeysKeyboardPanelStyle">@style/MoreKeysKeyboardPanelStyle</item>
|
||||
<item name="suggestionStripViewStyle">@style/SuggestionStripViewStyle</item>
|
||||
<item name="moreSuggestionsViewStyle">@style/MoreSuggestionsViewStyle</item>
|
||||
<item name="suggestionBackgroundStyle">@style/SuggestionBackgroundStyle</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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>
|
||||
<style name="KeyboardTheme" parent="KeyboardIcons">
|
||||
<item name="keyboardStyle">@style/Keyboard</item>
|
||||
<item name="keyboardViewStyle">@style/KeyboardView</item>
|
||||
<item name="mainKeyboardViewStyle">@style/MainKeyboardView</item>
|
||||
<item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard</item>
|
||||
<item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView</item>
|
||||
<item name="moreKeysKeyboardPanelStyle">@style/MoreKeysKeyboardPanelStyle</item>
|
||||
<item name="suggestionStripViewStyle">@style/SuggestionStripViewStyle</item>
|
||||
<item name="moreSuggestionsViewStyle">@style/MoreSuggestionsViewStyle</item>
|
||||
<item name="suggestionBackgroundStyle">@style/SuggestionBackgroundStyle</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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>
|
||||
<style name="KeyboardTheme.Stone.Bold" parent="KeyboardIcons.Black">
|
||||
<item name="keyboardStyle">@style/Keyboard.Stone.Bold</item>
|
||||
<item name="keyboardViewStyle">@style/KeyboardView.Stone.Bold</item>
|
||||
<item name="mainKeyboardViewStyle">@style/MainKeyboardView.Stone.Bold</item>
|
||||
<item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.Stone</item>
|
||||
<item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.Stone</item>
|
||||
<item name="moreKeysKeyboardPanelStyle">@style/MoreKeysKeyboardPanelStyle</item>
|
||||
<item name="suggestionStripViewStyle">@style/SuggestionStripViewStyle</item>
|
||||
<item name="moreSuggestionsViewStyle">@style/MoreSuggestionsViewStyle</item>
|
||||
<item name="suggestionBackgroundStyle">@style/SuggestionBackgroundStyle</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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>
|
||||
<style name="KeyboardTheme.Stone" parent="KeyboardIcons.Black">
|
||||
<item name="keyboardStyle">@style/Keyboard.Stone</item>
|
||||
<item name="keyboardViewStyle">@style/KeyboardView.Stone</item>
|
||||
<item name="mainKeyboardViewStyle">@style/MainKeyboardView.Stone</item>
|
||||
<item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.Stone</item>
|
||||
<item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.Stone</item>
|
||||
<item name="moreKeysKeyboardPanelStyle">@style/MoreKeysKeyboardPanelStyle</item>
|
||||
<item name="suggestionStripViewStyle">@style/SuggestionStripViewStyle</item>
|
||||
<item name="moreSuggestionsViewStyle">@style/MoreSuggestionsViewStyle</item>
|
||||
<item name="suggestionBackgroundStyle">@style/SuggestionBackgroundStyle</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -58,12 +58,8 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
|||
}
|
||||
|
||||
private static final KeyboardTheme[] KEYBOARD_THEMES = {
|
||||
new KeyboardTheme(0, R.style.KeyboardTheme),
|
||||
new KeyboardTheme(1, R.style.KeyboardTheme_HighContrast),
|
||||
new KeyboardTheme(6, R.style.KeyboardTheme_Stone),
|
||||
new KeyboardTheme(7, R.style.KeyboardTheme_Stone_Bold),
|
||||
new KeyboardTheme(8, R.style.KeyboardTheme_Gingerbread),
|
||||
new KeyboardTheme(5, R.style.KeyboardTheme_IceCreamSandwich),
|
||||
new KeyboardTheme(8, R.style.KeyboardTheme_Gingerbread),
|
||||
};
|
||||
|
||||
private SubtypeSwitcher mSubtypeSwitcher;
|
||||
|
@ -121,8 +117,9 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
|||
} catch (NumberFormatException e) {
|
||||
// Format error, keyboard theme is default to 0.
|
||||
}
|
||||
Log.w(TAG, "Illegal keyboard theme in preference: " + themeIndex + ", default to 0");
|
||||
return KEYBOARD_THEMES[0];
|
||||
Log.w(TAG, "Illegal keyboard theme in preference: " + themeIndex + ", default to "
|
||||
+ defaultIndex);
|
||||
return KEYBOARD_THEMES[Integer.valueOf(defaultIndex)];
|
||||
}
|
||||
|
||||
private void setContextThemeWrapper(final Context context, final KeyboardTheme keyboardTheme) {
|
||||
|
|