input_method_switch_dialog_title.xml revision d130b803b0787131208bea99926dc655b124f006
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:layout_marginBottom="9dip" 28 android:layout_marginStart="20dip" 29 android:layout_marginEnd="10dip" 30 android:layout_marginTop="6dip" 31 android:gravity="center_vertical" 32 android:orientation="vertical" > 33 34 <com.android.internal.widget.DialogTitle 35 android:id="@+id/alertTitle" 36 style="@android:style/DialogWindowTitle.DeviceDefault" 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:ellipsize="end" 40 android:singleLine="true" 41 android:text="@string/select_input_method" /> 42 </LinearLayout> 43 44 <!-- Hard keyboard switch --> 45 46 <LinearLayout 47 android:id="@+id/hard_keyboard_section" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:orientation="vertical" > 51 52 <LinearLayout 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:orientation="horizontal" > 56 57 <LinearLayout 58 android:layout_width="0dip" 59 android:layout_height="wrap_content" 60 android:layout_weight="1" 61 android:background="?android:attr/selectableItemBackground" 62 android:ellipsize="marquee" 63 android:gravity="center_vertical" 64 android:minHeight="?android:attr/listPreferredItemHeightSmall" 65 android:orientation="vertical" 66 android:paddingBottom="5dip" 67 android:paddingStart="16dip" 68 android:paddingEnd="0dip" 69 android:paddingTop="5dip" > 70 71 <TextView 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:singleLine="true" 75 android:text="@string/hardware" 76 android:textAppearance="?android:attr/textAppearanceMedium" 77 android:textColor="?android:attr/textColorAlertDialogListItem" /> 78 79 <TextView 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:singleLine="true" 83 android:text="@string/use_physical_keyboard" 84 android:textAppearance="?android:attr/textAppearanceSmall" 85 android:textColor="?android:attr/textColorAlertDialogListItem" /> 86 </LinearLayout> 87 88 <Switch 89 android:id="@+id/hard_keyboard_switch" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:layout_gravity="center_vertical" 93 android:layout_marginEnd="12dip" /> 94 </LinearLayout> 95 96 <View 97 android:layout_width="match_parent" 98 android:layout_height="1dp" 99 android:background="?android:attr/listDividerAlertDialog" /> 100 </LinearLayout> 101</LinearLayout> 102