1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4  ~ Copyright (C) 2019 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:gravity="center_vertical"
22    android:layout_height="wrap_content"
23    android:orientation="vertical"
24    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
25    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
26    android:paddingTop="16dp"
27    android:paddingBottom="8dp">
28
29    <TextView
30        android:id="@android:id/title"
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:layout_alignParentTop="true"
34        android:ellipsize="marquee"
35        android:fadingEdge="horizontal"
36        android:singleLine="true"
37        android:textAppearance="?android:attr/textAppearanceListItem"
38        android:hyphenationFrequency="normalFast"
39        android:lineBreakWordStyle="phrase"
40        android:textColor="?android:attr/textColorPrimary" />
41
42    <TextView
43        android:id="@android:id/summary"
44        android:layout_width="wrap_content"
45        android:layout_height="wrap_content"
46        android:layout_below="@android:id/title"
47        android:textAppearance="?android:attr/textAppearanceSmall"
48        android:textAlignment="viewStart"
49        android:hyphenationFrequency="normalFast"
50        android:lineBreakWordStyle="phrase"
51        android:textColor="?android:attr/textColorSecondary" />
52
53    <include
54        layout="@layout/icon_discrete_slider"
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content"
57        android:layout_below="@android:id/summary" />
58
59    <LinearLayout
60        android:id="@+id/label_frame"
61        android:layout_width="match_parent"
62        android:layout_height="wrap_content"
63        android:layout_below="@id/seekbar_frame"
64        android:orientation="horizontal"
65        android:visibility="gone">
66
67        <TextView
68            android:id="@android:id/text1"
69            android:layout_width="0dp"
70            android:layout_height="wrap_content"
71            android:layout_gravity="start|top"
72            android:textAppearance="?android:attr/textAppearanceSmall"
73            android:textColor="?android:attr/textColorSecondary"
74            android:gravity="start"
75            android:layout_weight="1"/>
76
77        <TextView
78            android:id="@android:id/text2"
79            android:layout_width="0dp"
80            android:layout_height="wrap_content"
81            android:layout_gravity="end|top"
82            android:textAppearance="?android:attr/textAppearanceSmall"
83            android:textColor="?android:attr/textColorSecondary"
84            android:gravity="end"
85            android:layout_weight="1"/>
86
87    </LinearLayout>
88
89</RelativeLayout>
90
91