1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:background="?attr/selectableItemBackground"
22    android:clipToPadding="false"
23    android:focusable="true"
24    android:gravity="center_vertical"
25    android:minHeight="?attr/listPreferredItemHeightSmall"
26    android:orientation="vertical"
27    android:paddingBottom="16dp"
28    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
29    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
30    android:paddingTop="16dp">
31
32    <TextView
33        android:id="@android:id/title"
34        android:layout_width="wrap_content"
35        android:layout_height="wrap_content"
36        android:ellipsize="marquee"
37        android:singleLine="true"
38        android:textAppearance="?android:attr/textAppearanceListItem" />
39
40    <LinearLayout
41        android:layout_width="match_parent"
42        android:layout_height="@dimen/touch_target_min_size">
43
44        <ImageView
45            android:id="@+id/alarm_icon"
46            android:layout_width="wrap_content"
47            android:layout_height="match_parent"
48            android:importantForAccessibility="no" />
49
50        <!-- Specify maxHeight to properly set the track height on API < 23 -->
51        <SeekBar
52            android:id="@+id/alarm_volume_slider"
53            android:layout_width="0dp"
54            android:layout_height="match_parent"
55            android:layout_gravity="center_vertical"
56            android:layout_weight="1"
57            android:maxHeight="@dimen/touch_target_min_size" />
58
59    </LinearLayout>
60
61</LinearLayout>