1 <?xml version="1.0" encoding="utf-8"?>
4 ** Copyright 2012, The Android Open Source Project
6 ** Licensed under the Apache License, Version 2.0 (the "License");
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
10 ** http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:orientation="vertical" >
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:orientation="vertical">
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:orientation="horizontal"
32 android:gravity="center_vertical|start"
33 android:paddingStart="?attr/dialogPreferredPadding"
34 android:paddingEnd="?attr/dialogPreferredPadding"
35 android:paddingTop="@dimen/dialog_padding_top_material">
37 <com.android.internal.widget.DialogTitle
38 android:id="@+id/alertTitle"
39 style="?attr/windowTitleStyle"
40 android:singleLine="true"
41 android:ellipsize="end"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:textAlignment="viewStart"
45 android:text="@string/select_input_method" />
49 <!-- Hard keyboard switch -->
52 android:id="@+id/hard_keyboard_section"
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:orientation="vertical" >
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:orientation="horizontal" >
63 android:layout_width="0dp"
64 android:layout_height="wrap_content"
65 android:layout_weight="1"
66 android:background="?attr/selectableItemBackground"
67 android:ellipsize="marquee"
68 android:gravity="center_vertical"
69 android:minHeight="?attr/listPreferredItemHeightSmall"
70 android:orientation="vertical"
71 android:paddingBottom="5dp"
72 android:paddingStart="?attr/listPreferredItemPaddingStart"
73 android:paddingEnd="16dp"
74 android:paddingTop="16dp" >
77 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
79 android:singleLine="true"
80 android:text="@string/hardware"
81 android:textAppearance="?attr/textAppearanceListItem"
82 android:ellipsize="marquee" />
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
88 android:text="@string/show_ime"
89 android:textAppearance="?attr/textAppearanceListItemSecondary"
90 android:textColor="?attr/textColorSecondary" />
94 android:id="@+id/hard_keyboard_switch"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:layout_gravity="center_vertical"
98 android:layout_marginEnd="?attr/listPreferredItemPaddingEnd" />
102 android:layout_width="match_parent"
103 android:layout_height="1dp"
104 android:background="?attr/listDividerAlertDialog" />