input_method_switch_dialog_title.xml revision 505e3abb8dd0d8f594280b9510adef74623630d7
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2012, The Android Open Source Project
5**
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
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
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.
17*/
18-->
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" >
23
24    <LinearLayout
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:orientation="vertical">
28        <LinearLayout
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">
36
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" />
46        </LinearLayout>
47    </LinearLayout>
48
49    <!-- Hard keyboard switch -->
50
51    <LinearLayout
52        android:id="@+id/hard_keyboard_section"
53        android:layout_width="match_parent"
54        android:layout_height="wrap_content"
55        android:orientation="vertical" >
56
57        <LinearLayout
58            android:layout_width="match_parent"
59            android:layout_height="wrap_content"
60            android:orientation="horizontal" >
61
62            <LinearLayout
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="0dp"
74                android:paddingTop="5dp" >
75
76                <TextView
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/textAppearanceMedium"
82                    android:textColor="?attr/textColorAlertDialogListItem" />
83
84                <TextView
85                    android:layout_width="wrap_content"
86                    android:layout_height="wrap_content"
87                    android:singleLine="true"
88                    android:text="@string/show_ime"
89                    android:textAppearance="?attr/textAppearanceSmall"
90                    android:textColor="?attr/textColorAlertDialogListItem" />
91            </LinearLayout>
92
93            <Switch
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" />
99        </LinearLayout>
100
101        <View
102            android:layout_width="match_parent"
103            android:layout_height="1dp"
104            android:background="?attr/listDividerAlertDialog" />
105    </LinearLayout>
106</LinearLayout>
107