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="?android:attr/selectableItemBackground"
22    android:gravity="center_horizontal|top"
23    android:orientation="vertical"
24    android:paddingEnd="@dimen/alarm_side_padding"
25    android:paddingStart="@dimen/alarm_side_padding">
26
27    <include layout="@layout/alarm_time_summary" />
28
29    <FrameLayout
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:layout_gravity="bottom">
33
34        <View
35            android:id="@+id/hairline"
36            android:layout_width="match_parent"
37            android:layout_height="@dimen/hairline_height"
38            android:layout_gravity="bottom"
39            android:layout_marginEnd="@dimen/icon_margin"
40            android:layout_marginStart="@dimen/icon_margin"
41            android:background="@color/hairline" />
42
43        <com.android.deskclock.widget.EllipsizeLayout
44            android:layout_width="match_parent"
45            android:layout_height="match_parent"
46            android:layout_gravity="center_vertical"
47            android:layout_marginEnd="@dimen/touch_target_min_size"
48            android:gravity="center_vertical">
49
50            <TextView
51                android:id="@+id/label"
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:ellipsize="none"
55                android:paddingStart="@dimen/icon_margin"
56                android:paddingEnd="@dimen/icon_margin"
57                android:singleLine="true"
58                android:textColor="@color/clock_gray"
59                android:textSize="@dimen/alarm_text_font_size" />
60
61            <TextView
62                android:id="@+id/days_of_week"
63                android:layout_width="wrap_content"
64                android:layout_height="wrap_content"
65                android:ellipsize="end"
66                android:focusable="true"
67                android:singleLine="true"
68                android:textColor="@color/clock_white"
69                android:textSize="@dimen/alarm_text_font_size"
70                android:textStyle="bold" />
71
72            <TextView
73                android:id="@+id/upcoming_instance_label"
74                android:layout_width="wrap_content"
75                android:layout_height="wrap_content"
76                android:ellipsize="end"
77                android:focusable="true"
78                android:singleLine="true"
79                android:textColor="@color/clock_white"
80                android:textSize="@dimen/alarm_text_font_size"
81                android:textStyle="bold" />
82
83        </com.android.deskclock.widget.EllipsizeLayout>
84
85        <ImageButton
86            android:id="@+id/arrow"
87            android:layout_width="@dimen/touch_target_min_size"
88            android:layout_height="@dimen/touch_target_min_size"
89            android:layout_gravity="center_vertical|end"
90            android:contentDescription="@string/expand_alarm"
91            android:scaleType="center"
92            android:src="@drawable/ic_expand_down" />
93
94    </FrameLayout>
95
96    <include
97        android:id="@+id/preemptive_dismiss_container"
98        layout="@layout/preemptive_dismiss" />
99
100</LinearLayout>
101