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<!-- Based off preference_two_target.xml, with the added LinearLayout for the icons. -->
19<LinearLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:minHeight="?android:attr/listPreferredItemHeightSmall"
24    android:gravity="center_vertical"
25    android:background="?android:attr/selectableItemBackground"
26    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
27    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
28    android:clipToPadding="false">
29
30    <include layout="@layout/settingslib_icon_frame"/>
31
32    <RelativeLayout
33        android:layout_width="wrap_content"
34        android:layout_height="wrap_content"
35        android:layout_weight="1"
36        android:paddingTop="16dp"
37        android:paddingBottom="16dp">
38
39        <TextView
40            android:id="@android:id/title"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:maxLines="2"
44            android:hyphenationFrequency="normalFast"
45            android:lineBreakWordStyle="phrase"
46            android:textAppearance="?android:attr/textAppearanceListItem"
47            android:ellipsize="marquee"/>
48
49        <TextView
50            android:id="@android:id/summary"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:layout_below="@android:id/title"
54            android:layout_alignStart="@android:id/title"
55            android:textAppearance="?android:attr/textAppearanceListItemSecondary"
56            android:textColor="?android:attr/textColorSecondary"
57            android:hyphenationFrequency="normalFast"
58            android:lineBreakWordStyle="phrase"
59            android:maxLines="10"/>
60
61        <!-- Circular icons (32dp) will be ImageViews under this container -->
62        <com.android.settings.notification.modes.CircularIconsView
63            android:id="@+id/circles_container"
64            android:importantForAccessibility="noHideDescendants"
65            android:orientation="horizontal"
66            android:gravity="center_vertical"
67            android:layout_width="match_parent"
68            android:layout_height="48dp"
69            android:layout_below="@android:id/summary"
70            android:layout_alignStart="@android:id/title" />
71
72    </RelativeLayout>
73
74    <include layout="@layout/preference_two_target_divider" />
75
76    <!-- Preference should place its actual preference widget here. -->
77    <LinearLayout
78        android:id="@android:id/widget_frame"
79        android:layout_width="wrap_content"
80        android:layout_height="match_parent"
81        android:minWidth="@dimen/two_target_min_width"
82        android:gravity="center"
83        android:orientation="vertical" />
84
85</LinearLayout>
86