1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 22 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 23 android:minHeight="?android:attr/listPreferredItemHeight" 24 android:gravity="center_vertical"> 25 26 <LinearLayout 27 android:id="@+id/pref_left_button" 28 android:layout_width="wrap_content" 29 android:layout_height="match_parent" 30 android:layout_weight="1" 31 android:gravity="center_vertical" 32 android:clickable="true" 33 android:focusable="true" 34 android:background="?android:attr/selectableItemBackground"> 35 36 <LinearLayout 37 android:id="@android:id/widget_frame" 38 android:layout_width="wrap_content" 39 android:layout_height="match_parent" 40 android:gravity="center_vertical" 41 android:orientation="vertical" /> 42 43 <RelativeLayout 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_marginStart="15dip" 47 android:layout_marginEnd="6dip" 48 android:layout_marginTop="6dip" 49 android:layout_marginBottom="6dip" 50 android:layout_weight="1"> 51 52 <TextView 53 android:id="@+android:id/title" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:singleLine="true" 57 android:textAppearance="?android:attr/textAppearanceMedium" 58 android:ellipsize="marquee" 59 android:fadingEdge="horizontal"/> 60 61 <TextView 62 android:id="@android:id/summary" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_below="@android:id/title" 66 android:layout_alignStart="@android:id/title" 67 android:paddingBottom="3dip" 68 android:visibility="gone" 69 android:textAppearance="?android:attr/textAppearanceSmall" 70 android:textSize="13sp" 71 android:textColor="?android:attr/textColorSecondary" 72 android:focusable="false" 73 android:maxLines="4" /> 74 75 </RelativeLayout> 76 77 </LinearLayout> 78 79 <View 80 android:layout_width="2dip" 81 android:layout_height="match_parent" 82 android:layout_marginTop="5dip" 83 android:layout_marginBottom="5dip" 84 android:background="@android:drawable/divider_horizontal_dark" /> 85 86 <ImageView 87 android:id="@+id/pref_right_button" 88 android:layout_width="wrap_content" 89 android:layout_height="fill_parent" 90 android:paddingStart="15dip" 91 android:paddingEnd="?android:attr/scrollbarSize" 92 android:src="@drawable/ic_sysbar_quicksettings" 93 android:contentDescription="@string/input_method_settings_button" 94 android:layout_gravity="center" 95 android:clickable="true" 96 android:focusable="true" 97 android:background="?android:attr/selectableItemBackground" /> 98 99 </LinearLayout> 100