input_view.xml revision 1a1c5e0f605f275166467420cbce2290f468ab26
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2011, 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<com.android.inputmethod.latin.InputView
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    android:layout_width="match_parent"
24    android:layout_height="wrap_content"
25    android:gravity="bottom|center_horizontal"
26    android:orientation="vertical" >
27    <!-- The height of key_preview_backing view will automatically be determined by code. -->
28    <RelativeLayout
29        android:id="@+id/key_preview_backing"
30        android:layout_width="match_parent"
31        android:layout_height="0dp" />
32    <LinearLayout
33        android:id="@+id/main_keyboard_frame"
34        android:layout_width="wrap_content"
35        android:layout_height="wrap_content"
36        android:orientation="vertical" >
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.latin.suggestions.SuggestionStripView
41            android:id="@+id/suggestion_strip_view"
42            android:layoutDirection="ltr"
43            android:layout_width="match_parent"
44            android:layout_height="@dimen/config_suggestions_strip_height"
45            android:gravity="center_vertical"
46            style="?attr/suggestionStripViewStyle" />
47
48        <!-- To ensure that key preview popup is correctly placed when the current system locale is
49             one of RTL locales, layoutDirection="ltr" is needed in the SDK version 17+. -->
50        <com.android.inputmethod.keyboard.MainKeyboardView
51            android:id="@+id/keyboard_view"
52            android:layoutDirection="ltr"
53            android:layout_width="match_parent"
54            android:layout_height="wrap_content" />
55    </LinearLayout>
56    <include
57        layout="@layout/emoji_palettes_view" />
58</com.android.inputmethod.latin.InputView>
59