1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** 5 ** Copyright 2014, The Android Open Source Project 6 ** 7 ** Licensed under the Apache License, Version 2.0 (the "License"); 8 ** you may not use this file except in compliance with the License. 9 ** You may obtain a copy of the License at 10 ** 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** 13 ** Unless required by applicable law or agreed to in writing, software 14 ** distributed under the License is distributed on an "AS IS" BASIS, 15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 ** See the License for the specific language governing permissions and 17 ** limitations under the License. 18 */ 19 --> 20 21 <LinearLayout 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content" 25 android:layout_gravity="bottom" 26 android:orientation="vertical" > 27 28 <!-- To ensure that key preview popup is correctly placed when the current system locale is 29 one of RTL locales, layoutDirection="ltr" is needed in the SDK version 17+. --> 30 <com.android.inputmethod.latin.suggestions.SuggestionStripView 31 android:id="@+id/suggestion_strip_view" 32 android:layoutDirection="ltr" 33 android:layout_width="match_parent" 34 android:layout_height="@dimen/config_suggestions_strip_height" 35 android:gravity="center_vertical" 36 style="?attr/suggestionStripViewStyle" /> 37 38 <!-- To ensure that key preview popup is correctly placed when the current system locale is 39 one of RTL locales, layoutDirection="ltr" is needed in the SDK version 17+. --> 40 <com.android.inputmethod.keyboard.MainKeyboardView 41 android:id="@+id/keyboard_view" 42 android:layoutDirection="ltr" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" /> 45 </LinearLayout> 46