1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2024 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 24 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 25 android:minHeight="72dp" 26 android:gravity="center_vertical" 27 android:background="?android:attr/selectableItemBackground" 28 android:clipToPadding="false" 29 android:baselineAligned="false"> 30 31 <LinearLayout 32 android:id="@+id/icon_frame" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:minWidth="40dp" 36 android:minHeight="40dp" 37 android:gravity="center" 38 android:orientation="horizontal" 39 android:paddingStart="16dp" 40 android:layout_marginEnd="-8dp"> 41 42 <androidx.preference.internal.PreferenceImageView 43 android:id="@android:id/icon" 44 android:layout_width="40dp" 45 android:layout_height="40dp" 46 android:scaleType="centerInside"/> 47 48 </LinearLayout> 49 50 <RelativeLayout 51 android:id="@+id/text_frame" 52 android:layout_width="0dp" 53 android:layout_height="wrap_content" 54 android:layout_weight="1" 55 android:paddingTop="16dp" 56 android:paddingBottom="16dp" 57 android:paddingStart="@dimen/homepage_preference_text_padding_start" 58 android:paddingEnd="16dp"> 59 60 <TextView 61 android:id="@android:id/title" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_gravity="start" 65 android:textAlignment="viewStart" 66 android:singleLine="true" 67 android:textAppearance="?android:attr/textAppearanceListItem" 68 android:hyphenationFrequency="normalFast" 69 android:lineBreakWordStyle="phrase" 70 android:ellipsize="marquee"/> 71 72 <TextView 73 android:id="@android:id/summary" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_below="@android:id/title" 77 android:layout_alignStart="@android:id/title" 78 android:layout_gravity="start" 79 android:textAlignment="viewStart" 80 android:textAppearance="?android:attr/textAppearanceSmall" 81 android:textColor="?androidprv:attr/materialColorOnSurfaceVariant" 82 android:maxLines="4" 83 android:hyphenationFrequency="normalFast" 84 android:lineBreakWordStyle="phrase" 85 style="@style/PreferenceSummaryTextStyle"/> 86 </RelativeLayout> 87</LinearLayout> 88