1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ** 4 ** Copyright 2011, 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 20 <com.android.systemui.statusbar.tablet.InputMethodsPanel 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_height="match_parent" 23 android:layout_width="match_parent" 24 android:paddingBottom="28dip" 25 android:orientation="vertical" 26 android:visibility="gone"> 27 <View 28 android:layout_width="match_parent" 29 android:layout_height="0dip" 30 android:layout_weight="1" /> 31 <FrameLayout 32 android:id="@+id/glow" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:background="@drawable/recents_blue_glow"> 36 <LinearLayout 37 android:layout_width="450dip" 38 android:layout_height="wrap_content" 39 android:layout_marginLeft="20dip" 40 android:orientation="vertical" 41 android:background="@*android:drawable/dialog_full_holo_dark"> 42 <!-- Hard keyboard switch --> 43 <LinearLayout 44 android:id="@+id/hard_keyboard_section" 45 android:layout_height="wrap_content" 46 android:layout_width="match_parent" 47 android:orientation="vertical"> 48 <LinearLayout 49 android:layout_height="wrap_content" 50 android:layout_width="match_parent" 51 android:orientation="horizontal"> 52 <TextView 53 android:id="@+id/use_physical_keyboard_label" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_weight="1" 57 android:minHeight="?android:attr/listPreferredItemHeight" 58 android:background="?android:attr/selectableItemBackground" 59 android:orientation="vertical" 60 android:paddingRight="6dip" 61 android:paddingLeft="30dip" 62 android:paddingTop="5dip" 63 android:paddingBottom="5dip" 64 android:gravity="center_vertical" 65 android:singleLine="true" 66 android:text="@string/status_bar_use_physical_keyboard" 67 android:textAppearance="?android:attr/textAppearanceMedium" 68 android:ellipsize="marquee" /> 69 <Switch 70 android:id="@+id/hard_keyboard_switch" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_gravity="center_vertical" 74 android:layout_marginRight="16dip" /> 75 </LinearLayout> 76 <View 77 android:layout_width="match_parent" 78 android:layout_height="1dip" 79 android:background="@android:drawable/divider_horizontal_dark" /> 80 </LinearLayout> 81 82 <!-- Input method list --> 83 <ScrollView 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:overScrollMode="ifContentScrolls" 87 android:layout_marginTop="3dip" 88 android:layout_weight="1" 89 android:scrollbarAlwaysDrawVerticalTrack="true" 90 android:scrollbarDefaultDelayBeforeFade="75000"> 91 <LinearLayout 92 android:id="@+id/input_method_menu_list" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:orientation="vertical" /> 96 </ScrollView> 97 98 <!-- Configure input methods --> 99 <TextView 100 android:id="@+id/ime_settings_shortcut" 101 android:layout_width="match_parent" 102 android:layout_height="wrap_content" 103 android:minHeight="?android:attr/listPreferredItemHeight" 104 android:background="?android:attr/selectableItemBackground" 105 android:orientation="vertical" 106 android:paddingRight="6dip" 107 android:paddingLeft="30dip" 108 android:paddingTop="5dip" 109 android:paddingBottom="5dip" 110 android:gravity="center_vertical" 111 android:singleLine="true" 112 android:text="@string/status_bar_input_method_settings_configure_input_methods" 113 android:textAppearance="?android:attr/textAppearanceMedium" 114 android:ellipsize="marquee" /> 115 </LinearLayout> 116 </FrameLayout> 117 </com.android.systemui.statusbar.tablet.InputMethodsPanel>