1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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:background="?android:attr/selectableItemBackground" 21 android:gravity="center_vertical" 22 android:minHeight="?android:attr/listPreferredItemHeightSmall" 23 android:orientation="horizontal" 24 android:paddingBottom="@dimen/progress_bar_preference_padding_bottom" 25 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 26 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 27 android:paddingTop="@dimen/progress_bar_preference_padding_top"> 28 <androidx.preference.internal.PreferenceImageView 29 android:id="@android:id/icon" 30 android:layout_width="@dimen/icon_size" 31 android:layout_height="@dimen/icon_size" 32 android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"/> 33 34 <LinearLayout 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:orientation="vertical"> 38 <LinearLayout 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:orientation="horizontal"> 42 <TextView 43 android:id="@android:id/title" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:singleLine="true" 47 android:textAlignment="viewStart" 48 android:textAppearance="?android:attr/textAppearanceLarge"/> 49 50 <Space 51 android:layout_width="0dp" 52 android:layout_height="wrap_content" 53 android:layout_weight="1"/> 54 55 <TextView 56 android:id="@android:id/summary" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_gravity="center" 60 android:maxLines="1" 61 android:textAlignment="viewEnd" 62 android:textAppearance="?android:attr/textAppearanceSmall"/> 63 </LinearLayout> 64 65 <ProgressBar 66 android:id="@android:id/progress" 67 style="?android:attr/progressBarStyleHorizontal" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:layout_marginTop="@dimen/progress_bar_preference_progressbar_margin_top"/> 71 72 <LinearLayout 73 android:id="@+id/progress_bar_labels" 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:layout_marginTop="@dimen/progress_bar_preference_label_margin_top" 77 android:orientation="horizontal"> 78 <TextView android:id="@android:id/text1" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:textAppearance="?android:attr/textAppearanceSmall"/> 82 83 <Space 84 android:layout_width="0dp" 85 android:layout_height="wrap_content" 86 android:layout_weight="1"/> 87 88 <TextView android:id="@android:id/text2" 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:textAppearance="?android:attr/textAppearanceSmall"/> 92 </LinearLayout> 93 </LinearLayout> 94</LinearLayout>