1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:orientation="vertical" 21 android:minHeight="?android:attr/listPreferredItemHeightSmall" 22 android:gravity="center_vertical" 23 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 24 android:paddingTop="14dp" 25 android:paddingBottom="14dp" 26 android:background="?android:attr/selectableItemBackground" 27 android:clipToPadding="false"> 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:gravity="center_vertical" 33 android:orientation="horizontal" 34 android:clipToPadding="false" 35 android:paddingStart="?android:attr/listPreferredItemPaddingStart"> 36 37 <LinearLayout 38 android:id="@+id/icon_frame" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:gravity="start|center_vertical" 42 android:minWidth="56dp" 43 android:orientation="horizontal" 44 android:paddingTop="4dp" 45 android:paddingBottom="4dp"> 46 <com.android.internal.widget.PreferenceImageView 47 android:id="@android:id/icon" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:maxWidth="24dp" 51 android:maxHeight="24dp"/> 52 </LinearLayout> 53 54 <RelativeLayout 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:gravity="center_vertical" > 58 59 <TextView 60 android:id="@android:id/title" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:singleLine="true" 64 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" 65 android:textAlignment="viewStart" 66 android:ellipsize="marquee" 67 android:fadingEdge="horizontal" /> 68 69 <TextView 70 android:id="@android:id/summary" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:textAlignment="viewStart" 74 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 75 android:textColor="?android:attr/textColorSecondary" 76 android:maxLines="10" 77 android:layout_alignParentEnd="true"/> 78 79 <ProgressBar 80 android:id="@android:id/progress" 81 android:layout_width="match_parent" 82 android:layout_height="8dp" 83 android:layout_marginTop="12dp" 84 android:layout_marginBottom="4dp" 85 android:max="100" 86 android:layout_below="@android:id/title" 87 android:layout_alignStart="@android:id/title" 88 style="?android:attr/progressBarStyleHorizontal" /> 89 </RelativeLayout> 90 </LinearLayout> 91</LinearLayout> 92