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