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:paddingStart="?android:attr/listPreferredItemPaddingStart" 24 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 25 android:paddingTop="16dip" 26 android:paddingBottom="16dip" 27 android:background="?android:attr/selectableItemBackground"> 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 35 <LinearLayout 36 android:id="@android:id/icon_frame" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:gravity="start|center_vertical" 40 android:minWidth="60dp" 41 android:orientation="horizontal" 42 android:paddingEnd="12dp" 43 android:paddingTop="4dp" 44 android:paddingBottom="4dp"> 45 <com.android.internal.widget.PreferenceImageView 46 android:id="@android:id/icon" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:maxWidth="24dp" 50 android:maxHeight="24dp"/> 51 </LinearLayout> 52 53 <TextView 54 android:id="@android:id/title" 55 android:layout_width="0dp" 56 android:layout_height="wrap_content" 57 android:layout_weight="1" 58 android:singleLine="true" 59 android:textAppearance="@android:style/TextAppearance.Material.Subhead" 60 android:textAlignment="viewStart" 61 android:ellipsize="marquee" 62 android:fadingEdge="horizontal" /> 63 64 <TextView 65 android:id="@android:id/summary" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:textAlignment="viewStart" 69 android:textAppearance="@android:style/TextAppearance.Material.Body1" 70 android:textColor="?android:attr/textColorSecondaryNoDisable" 71 android:maxLines="10" /> 72 73 </LinearLayout> 74 75 <ProgressBar 76 android:id="@android:id/progress" 77 android:layout_width="match_parent" 78 android:layout_height="8dp" 79 android:layout_marginStart="60dp" 80 android:layout_marginTop="16dp" 81 android:layout_marginBottom="8dp" 82 android:visibility="gone" 83 android:max="100" 84 style="?android:attr/progressBarStyleHorizontal" /> 85 86</LinearLayout> 87