1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright 2019 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:leanbackime="http://schemas.android.com/apk/res/com.android.inputmethod.leanback"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:clipChildren="false"
23    android:focusable="false"
24    android:gravity="bottom" >
25
26    <LinearLayout
27        android:id="@+id/keyboard"
28        android:layout_width="wrap_content"
29        android:layout_height="wrap_content"
30        android:layout_centerHorizontal="true"
31        android:clipChildren="false"
32        android:orientation="horizontal" >
33
34        <com.android.inputmethod.leanback.LeanbackKeyboardView
35            android:id="@+id/main_keyboard"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:clipChildren="false"
39            leanbackime:columnCount="11"
40            leanbackime:rowCount="5" />
41    </LinearLayout>
42
43    <FrameLayout
44        android:layout_width="match_parent"
45        android:layout_height="wrap_content"
46        android:layout_alignBottom="@id/keyboard"
47        android:layout_alignTop="@id/keyboard"
48        android:layout_centerHorizontal="true" >
49
50        <com.android.inputmethod.leanback.voice.RecognizerView
51            android:id="@+id/voice"
52            android:layout_width="@dimen/recognizer_size"
53            android:layout_height="@dimen/recognizer_size"
54            android:layout_gravity="center"
55            android:visibility="invisible" />
56    </FrameLayout>
57
58    <FrameLayout
59        android:layout_width="match_parent"
60        android:layout_height="wrap_content"
61        android:layout_alignBottom="@id/keyboard"
62        android:layout_alignParentRight="true"
63        android:layout_alignTop="@id/keyboard"
64        android:layout_toRightOf="@id/keyboard" >
65
66        <Button
67            android:id="@+id/enter"
68            android:layout_width="wrap_content"
69            android:layout_height="@dimen/enter_key_height"
70            android:layout_gravity="center"
71            android:background="@null"
72            android:fontFamily="sans-serif-regular"
73            android:paddingLeft="@dimen/enter_key_padding_horizontal"
74            android:paddingRight="@dimen/enter_key_padding_horizontal"
75            android:text="@string/label_next_key"
76            android:textColor="@color/enter_key_font_color"
77            android:textSize="@dimen/enter_key_font_size" />
78    </FrameLayout>
79
80</RelativeLayout>
81