• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:orientation="vertical"
24    android:layout_width="match_parent"
25    android:layout_height="wrap_content"
26>
27    <!-- The height of key_preview_backing view will automatically be determined by code. -->
28    <View
29        android:id="@+id/key_preview_backing"
30        android:layout_width="match_parent"
31        android:layout_height="0dp" />
32
33    <!-- On tablets, the suggestions strip is centered with horizontal paddings on both sides
34         because width of the landscape mode is too long for the suggestions strip. This
35         LinearLayout is required to hold the paddings. -->
36    <LinearLayout
37        android:id="@+id/suggestions_container"
38        android:orientation="horizontal"
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41    >
42        <View
43            android:layout_width="@dimen/suggestions_strip_padding"
44            android:layout_height="@dimen/suggestions_strip_height"
45            style="?attr/suggestionsStripBackgroundStyle" />
46        <!-- To ensure that key preview popup is correctly placed when the current system locale is
47             one of RTL locales, layoutDirection="ltr" is needed in the SDK version 17+. -->
48        <com.android.inputmethod.latin.suggestions.SuggestionStripView
49            android:id="@+id/suggestion_strip_view"
50            android:layoutDirection="ltr"
51            android:layout_weight="1.0"
52            android:layout_width="0dp"
53            android:layout_height="@dimen/suggestions_strip_height"
54            android:gravity="center_vertical"
55            style="?attr/suggestionStripViewStyle" />
56        <View
57            android:layout_width="@dimen/suggestions_strip_padding"
58            android:layout_height="@dimen/suggestions_strip_height"
59            style="?attr/suggestionsStripBackgroundStyle" />
60    </LinearLayout>
61
62    <!-- To ensure that key preview popup is correctly placed when the current system locale is
63         one of RTL locales, layoutDirection="ltr" is needed in the SDK version 17+. -->
64    <com.android.inputmethod.keyboard.MainKeyboardView
65        android:id="@+id/keyboard_view"
66        android:layoutDirection="ltr"
67        android:layout_alignParentBottom="true"
68        android:layout_width="match_parent"
69        android:layout_height="wrap_content" />
70</com.android.inputmethod.latin.InputView>
71