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:textColor="?android:attr/textColorPrimary" />
39
40    <TextView
41        android:id="@android:id/summary"
42        android:layout_width="wrap_content"
43        android:layout_height="wrap_content"
44        android:layout_below="@android:id/title"
45        android:textAppearance="?android:attr/textAppearanceSmall"
46        android:textAlignment="viewStart"
47        android:textColor="?android:attr/textColorSecondary" />
48
49    <SeekBar
50        android:id="@*android:id/seekbar"
51        android:layout_below="@android:id/summary"
52        android:layout_gravity="center_vertical"
53        android:layout_width="match_parent"
54        android:layout_height="48dp"
55        android:paddingStart="0dp"
56        android:paddingEnd="12dp"
57        style="@android:style/Widget.Material.SeekBar.Discrete" />
58
59    <LinearLayout
60        android:layout_width="match_parent"
61        android:layout_height="wrap_content"
62        android:layout_below="@*android:id/seekbar"
63        android:orientation="horizontal">
64
65        <TextView
66            android:id="@android:id/text1"
67            android:layout_width="0dp"
68            android:layout_height="wrap_content"
69            android:layout_gravity="start|top"
70            android:gravity="start"
71            android:layout_weight="1"/>
72
73        <TextView
74            android:id="@android:id/text2"
75            android:layout_width="0dp"
76            android:layout_height="wrap_content"
77            android:layout_gravity="end|top"
78            android:gravity="end"
79            android:layout_weight="1"/>
80
81    </LinearLayout>
82
83</RelativeLayout>
84
85