am ade725ed: Merge "Fix unit test"

* commit 'ade725ed019250ff446ba81d1f0ebf97b4527c2e':
  Fix unit test
main
Tadashi G. Takaoka 2013-08-28 04:32:04 -07:00 committed by Android Git Automerger
commit 491b49b33c
10 changed files with 45 additions and 25 deletions

View File

@ -33,4 +33,4 @@
android:clickable="false" android:clickable="false"
android:singleLine="true" android:singleLine="true"
android:ellipsize="none" android:ellipsize="none"
android:background="?attr/suggestionBackground" /> style="?attr/suggestionWordStyle" />

View File

@ -34,7 +34,6 @@
android:layout_height="@dimen/suggestions_strip_height" android:layout_height="@dimen/suggestions_strip_height"
android:paddingRight="@dimen/suggestions_strip_padding" android:paddingRight="@dimen/suggestions_strip_padding"
android:paddingLeft="@dimen/suggestions_strip_padding" android:paddingLeft="@dimen/suggestions_strip_padding"
android:background="?attr/suggestionStripBackground"
style="?attr/suggestionStripViewStyle" /> style="?attr/suggestionStripViewStyle" />
<!-- To ensure that key preview popup is correctly placed when the current system locale is <!-- To ensure that key preview popup is correctly placed when the current system locale is
one of RTL locales, layoutDirection="ltr" is needed in the SDK version 17+. --> one of RTL locales, layoutDirection="ltr" is needed in the SDK version 17+. -->

View File

@ -23,7 +23,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:background="?attr/moreKeysKeyboardBackground" style="?attr/moreKeysKeyboardContainerStyle"
> >
<com.android.inputmethod.keyboard.MoreKeysKeyboardView <com.android.inputmethod.keyboard.MoreKeysKeyboardView
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"

View File

@ -23,7 +23,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:background="?attr/moreKeysKeyboardBackground" style="?attr/moreKeysKeyboardContainerStyle"
> >
<com.android.inputmethod.latin.suggestions.MoreSuggestionsView <com.android.inputmethod.latin.suggestions.MoreSuggestionsView
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"

View File

@ -24,4 +24,4 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="6dp" android:textSize="6dp"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:background="?attr/suggestionBackground" /> style="?attr/suggestionWordStyle" />

View File

@ -36,4 +36,4 @@
android:clickable="false" android:clickable="false"
android:singleLine="true" android:singleLine="true"
android:ellipsize="none" android:ellipsize="none"
android:background="?attr/suggestionBackground" /> style="?attr/suggestionWordStyle" />

View File

@ -32,12 +32,12 @@
<attr name="moreKeysKeyboardStyle" format="reference" /> <attr name="moreKeysKeyboardStyle" format="reference" />
<!-- MoreKeysKeyboardView style --> <!-- MoreKeysKeyboardView style -->
<attr name="moreKeysKeyboardViewStyle" format="reference" /> <attr name="moreKeysKeyboardViewStyle" format="reference" />
<!-- MoreKeysKeyboardView container style -->
<attr name="moreKeysKeyboardContainerStyle" format="reference" />
<!-- Suggestions strip style --> <!-- Suggestions strip style -->
<attr name="suggestionStripViewStyle" format="reference" /> <attr name="suggestionStripViewStyle" format="reference" />
<!-- Styled attributes for android:background --> <!-- Suggestion word style -->
<attr name="moreKeysKeyboardBackground" format="reference" /> <attr name="suggestionWordStyle" format="reference" />
<attr name="suggestionStripBackground" format="reference" />
<attr name="suggestionBackground" format="reference" />
</declare-styleable> </declare-styleable>
<declare-styleable name="KeyboardView"> <declare-styleable name="KeyboardView">

View File

@ -30,6 +30,7 @@
<item name="maxMoreKeysColumn">@integer/config_max_more_keys_column</item> <item name="maxMoreKeysColumn">@integer/config_max_more_keys_column</item>
</style> </style>
<style name="KeyboardView"> <style name="KeyboardView">
<item name="keyBackground">@drawable/btn_keyboard_key_ics</item>
<item name="keyLetterSize">@fraction/key_letter_ratio</item> <item name="keyLetterSize">@fraction/key_letter_ratio</item>
<item name="keyLargeLetterRatio">@fraction/key_large_letter_ratio</item> <item name="keyLargeLetterRatio">@fraction/key_large_letter_ratio</item>
<item name="keyLabelSize">@fraction/key_label_ratio</item> <item name="keyLabelSize">@fraction/key_label_ratio</item>
@ -100,16 +101,24 @@
<item name="gestureRecognitionSpeedThreshold">@fraction/config_gesture_recognition_speed_threshold</item> <item name="gestureRecognitionSpeedThreshold">@fraction/config_gesture_recognition_speed_threshold</item>
<item name="suppressKeyPreviewAfterBatchInputDuration">@integer/config_suppress_key_preview_after_batch_input_duration</item> <item name="suppressKeyPreviewAfterBatchInputDuration">@integer/config_suppress_key_preview_after_batch_input_duration</item>
</style> </style>
<style name="MainKeyboardView" /> <style
name="MainKeyboardView"
parent="KeyboardView" />
<style name="EmojiKeyboardView" /> <style name="EmojiKeyboardView" />
<style name="MoreKeysKeyboard" /> <style name="MoreKeysKeyboard" />
<style name="MoreKeysKeyboardView" />
<style <style
name="SuggestionStripView" name="MoreKeysKeyboardView"
> parent="MainKeyboardView" />
<style name="MoreKeysKeyboardContainer" />
<style name="SuggestionStripView">
<item name="suggestionsCountInStrip">@integer/suggestions_count_in_strip</item> <item name="suggestionsCountInStrip">@integer/suggestions_count_in_strip</item>
<item name="centerSuggestionPercentile">@fraction/center_suggestion_percentile</item> <item name="centerSuggestionPercentile">@fraction/center_suggestion_percentile</item>
<item name="maxMoreSuggestionsRow">@integer/max_more_suggestions_row</item> <item name="maxMoreSuggestionsRow">@integer/max_more_suggestions_row</item>
<item name="minMoreSuggestionsWidth">@fraction/min_more_suggestions_width</item> <item name="minMoreSuggestionsWidth">@fraction/min_more_suggestions_width</item>
</style> </style>
<style name="SuggestionWord" />
<style name="MoreKeysKeyboardAnimation">
<item name="android:windowEnterAnimation">@anim/more_keys_keyboard_fadein</item>
<item name="android:windowExitAnimation">@anim/more_keys_keyboard_fadeout</item>
</style>
</resources> </resources>

View File

@ -26,10 +26,9 @@
<item name="emojiKeyboardViewStyle">@style/EmojiKeyboardView.GB</item> <item name="emojiKeyboardViewStyle">@style/EmojiKeyboardView.GB</item>
<item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.GB</item> <item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.GB</item>
<item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.GB</item> <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.GB</item>
<item name="moreKeysKeyboardContainerStyle">@style/MoreKeysKeyboardContainer.GB</item>
<item name="suggestionStripViewStyle">@style/SuggestionStripView.GB</item> <item name="suggestionStripViewStyle">@style/SuggestionStripView.GB</item>
<item name="moreKeysKeyboardBackground">@drawable/keyboard_popup_panel_background_gb</item> <item name="suggestionWordStyle">@style/SuggestionWord.GB</item>
<item name="suggestionStripBackground">@drawable/keyboard_suggest_strip_gb</item>
<item name="suggestionBackground">@drawable/btn_suggestion_gb</item>
</style> </style>
<style name="KeyboardIcons.GB"> <style name="KeyboardIcons.GB">
<!-- Keyboard icons --> <!-- Keyboard icons -->
@ -122,10 +121,16 @@
<item name="keyTypeface">normal</item> <item name="keyTypeface">normal</item>
<item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_gb</item> <item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_gb</item>
</style> </style>
<style
name="MoreKeysKeyboardContainer.GB"
>
<item name="android:background">@drawable/keyboard_popup_panel_background_gb</item>
</style>
<style <style
name="SuggestionStripView.GB" name="SuggestionStripView.GB"
parent="SuggestionStripView" parent="SuggestionStripView"
> >
<item name="android:background">@drawable/keyboard_suggest_strip_gb</item>
<item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item> <item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item>
<item name="colorValidTypedWord">@color/highlight_color_gb</item> <item name="colorValidTypedWord">@color/highlight_color_gb</item>
<item name="colorTypedWord">@color/typed_word_color_gb</item> <item name="colorTypedWord">@color/typed_word_color_gb</item>
@ -133,4 +138,7 @@
<item name="colorSuggested">@color/highlight_color_gb</item> <item name="colorSuggested">@color/highlight_color_gb</item>
<item name="alphaObsoleted">50%</item> <item name="alphaObsoleted">50%</item>
</style> </style>
<style name="SuggestionWord.GB">
<item name="android:background">@drawable/btn_suggestion_gb</item>
</style>
</resources> </resources>

View File

@ -18,7 +18,7 @@
*/ */
--> -->
<resources> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="KeyboardTheme.ICS" parent="KeyboardIcons.ICS"> <style name="KeyboardTheme.ICS" parent="KeyboardIcons.ICS">
<item name="keyboardStyle">@style/Keyboard.ICS</item> <item name="keyboardStyle">@style/Keyboard.ICS</item>
<item name="keyboardViewStyle">@style/KeyboardView.ICS</item> <item name="keyboardViewStyle">@style/KeyboardView.ICS</item>
@ -26,10 +26,9 @@
<item name="emojiKeyboardViewStyle">@style/EmojiKeyboardView.ICS</item> <item name="emojiKeyboardViewStyle">@style/EmojiKeyboardView.ICS</item>
<item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.ICS</item> <item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.ICS</item>
<item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.ICS</item> <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.ICS</item>
<item name="moreKeysKeyboardContainerStyle">@style/MoreKeysKeyboardContainer.ICS</item>
<item name="suggestionStripViewStyle">@style/SuggestionStripView.ICS</item> <item name="suggestionStripViewStyle">@style/SuggestionStripView.ICS</item>
<item name="moreKeysKeyboardBackground">@drawable/keyboard_popup_panel_background_holo</item> <item name="suggestionWordStyle">@style/SuggestionWord.ICS</item>
<item name="suggestionStripBackground">@drawable/keyboard_suggest_strip_holo</item>
<item name="suggestionBackground">@drawable/btn_suggestion_ics</item>
</style> </style>
<style name="KeyboardIcons.ICS"> <style name="KeyboardIcons.ICS">
<!-- Keyboard icons --> <!-- Keyboard icons -->
@ -123,10 +122,16 @@
<item name="keyTypeface">normal</item> <item name="keyTypeface">normal</item>
<item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_ics</item> <item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_ics</item>
</style> </style>
<style
name="MoreKeysKeyboardContainer.ICS"
>
<item name="android:background">@drawable/keyboard_popup_panel_background_holo</item>
</style>
<style <style
name="SuggestionStripView.ICS" name="SuggestionStripView.ICS"
parent="SuggestionStripView" parent="SuggestionStripView"
> >
<item name="android:background">@drawable/keyboard_suggest_strip_holo</item>
<item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item> <item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item>
<item name="colorValidTypedWord">@color/typed_word_color_ics</item> <item name="colorValidTypedWord">@color/typed_word_color_ics</item>
<item name="colorTypedWord">@color/typed_word_color_ics</item> <item name="colorTypedWord">@color/typed_word_color_ics</item>
@ -134,8 +139,7 @@
<item name="colorSuggested">@color/suggested_word_color_ics</item> <item name="colorSuggested">@color/suggested_word_color_ics</item>
<item name="alphaObsoleted">70%</item> <item name="alphaObsoleted">70%</item>
</style> </style>
<style name="MoreKeysKeyboardAnimation"> <style name="SuggestionWord.ICS">
<item name="android:windowEnterAnimation">@anim/more_keys_keyboard_fadein</item> <item name="android:background">@drawable/btn_suggestion_ics</item>
<item name="android:windowExitAnimation">@anim/more_keys_keyboard_fadeout</item>
</style> </style>
</resources> </resources>