am da348e11: Fix layout direction of Keyboard and Suggestions view

* commit 'da348e11ad43b5eaf70a6bad8551a86cd43a6512':
  Fix layout direction of Keyboard and Suggestions view
main
Tadashi G. Takaoka 2013-02-18 00:26:15 -08:00 committed by Android Git Automerger
commit c4932d2616
1 changed files with 6 additions and 0 deletions

View File

@ -43,8 +43,11 @@
android:layout_width="@dimen/suggestions_strip_padding" android:layout_width="@dimen/suggestions_strip_padding"
android:layout_height="@dimen/suggestions_strip_height" android:layout_height="@dimen/suggestions_strip_height"
style="?attr/suggestionsStripBackgroundStyle" /> style="?attr/suggestionsStripBackgroundStyle" />
<!-- 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+. -->
<com.android.inputmethod.latin.suggestions.SuggestionStripView <com.android.inputmethod.latin.suggestions.SuggestionStripView
android:id="@+id/suggestion_strip_view" android:id="@+id/suggestion_strip_view"
android:layoutDirection="ltr"
android:layout_weight="1.0" android:layout_weight="1.0"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/suggestions_strip_height" android:layout_height="@dimen/suggestions_strip_height"
@ -56,8 +59,11 @@
style="?attr/suggestionsStripBackgroundStyle" /> style="?attr/suggestionsStripBackgroundStyle" />
</LinearLayout> </LinearLayout>
<!-- 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+. -->
<com.android.inputmethod.keyboard.MainKeyboardView <com.android.inputmethod.keyboard.MainKeyboardView
android:id="@+id/keyboard_view" android:id="@+id/keyboard_view"
android:layoutDirection="ltr"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />