1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:minHeight="?android:attr/listPreferredItemHeight" 21 android:gravity="center_vertical" 22 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 23 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 24 android:clickable="false" > 25 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="vertical" 30 android:layout_marginTop="8dip" 31 android:layout_marginBottom="8dip"> 32 33 <LinearLayout 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content"> 36 <TextView android:id="@android:id/title" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_weight="1" 40 android:singleLine="true" 41 android:textAppearance="@android:style/TextAppearance.Material.Subhead" 42 android:textColor="?android:attr/textColorPrimary" 43 android:ellipsize="marquee" 44 android:fadingEdge="horizontal" /> 45 <!-- Preference should place its actual preference widget here. --> 46 <LinearLayout android:id="@android:id/widget_frame" 47 android:layout_width="wrap_content" 48 android:layout_height="match_parent" 49 android:gravity="end|center_vertical" 50 android:paddingStart="16dp" 51 android:orientation="vertical" /> 52 </LinearLayout> 53 54 <FrameLayout 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:layout_marginTop="6dp"> 58 59 <ImageView 60 android:id="@android:id/icon" 61 android:layout_gravity="center_vertical|start" 62 android:layout_width="24dp" 63 android:layout_height="24dp" /> 64 65 <SeekBar android:id="@*android:id/seekbar" 66 android:layout_marginStart="24dp" 67 android:layout_gravity="center_vertical" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" /> 70 71 <TextView android:id="@+id/suppression_text" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:layout_gravity="center_vertical|start" 75 android:textAlignment="viewStart" 76 android:layout_marginStart="24dp" 77 android:paddingStart="14dp" 78 android:singleLine="true" 79 android:ellipsize="end" 80 android:textAppearance="@android:style/TextAppearance.Material.Body1" 81 android:textColor="?android:attr/textColorSecondary" /> 82 83 </FrameLayout> 84 85 </LinearLayout> 86 87</FrameLayout> 88