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/tts_engine_pref" 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 <RadioButton 37 android:id="@+id/tts_engine_radiobutton" 38 android:layout_width="wrap_content" 39 android:layout_height="match_parent" 40 android:layout_gravity="center_vertical" 41 android:orientation="vertical" 42 android:clickable="true" /> 43 44 <RelativeLayout 45 android:id="@+id/tts_engine_pref_text" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_marginStart="15dip" 49 android:layout_marginEnd="6dip" 50 android:layout_marginTop="6dip" 51 android:layout_marginBottom="6dip" 52 android:layout_weight="1"> 53 54 <TextView 55 android:id="@android:id/title" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:singleLine="true" 59 android:textAppearance="?android:attr/textAppearanceMedium" 60 android:ellipsize="marquee" 61 android:fadingEdge="horizontal"/> 62 63 <TextView 64 android:id="@android:id/summary" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_below="@android:id/title" 68 android:layout_alignStart="@android:id/title" 69 android:visibility="gone" 70 android:textAppearance="?android:attr/textAppearanceSmall" 71 android:textSize="13sp" 72 android:textColor="?android:attr/textColorSecondary" 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/tts_engine_settings" 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/tts_engine_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