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