1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2016 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<FrameLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:fitsSystemWindows="true"
24    android:layoutDirection="ltr">
25
26    <androidx.gridlayout.widget.GridLayout
27        android:id="@+id/content"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        app:rowCount="3"
31        app:columnCount="3">
32
33        <TextClock
34            android:id="@+id/digital_clock"
35            style="@style/display_time"
36            android:layout_width="0dp"
37            android:layout_height="wrap_content"
38            android:layout_marginTop="?attr/actionBarSize"
39            android:gravity="center"
40            android:includeFontPadding="false"
41            android:singleLine="true"
42            android:textSize="@dimen/big_font_size"
43            app:layout_row="0"
44            app:layout_column="0"
45            app:layout_columnSpan="3"
46            app:layout_gravity="fill_horizontal" />
47
48        <TextView
49            android:id="@+id/title"
50            style="@style/body"
51            android:layout_width="0dp"
52            android:layout_height="wrap_content"
53            android:gravity="center"
54            android:singleLine="true"
55            android:textSize="20sp"
56            app:layout_row="1"
57            app:layout_column="0"
58            app:layout_columnSpan="3"
59            app:layout_gravity="fill_horizontal" />
60
61        <com.android.deskclock.widget.CircleView
62            android:id="@+id/pulse"
63            android:layout_width="0dp"
64            android:layout_height="0dp"
65            android:gravity="center"
66            android:layerType="hardware"
67            app:layout_row="2"
68            app:layout_column="0"
69            app:layout_columnSpan="3"
70            app:layout_gravity="fill"
71            app:fillColor="@android:color/white"
72            app:radius="@dimen/alarm_lockscreen_pulse_radius" />
73
74        <ImageView
75            android:id="@+id/snooze"
76            android:layout_width="wrap_content"
77            android:layout_height="wrap_content"
78            android:background="@drawable/bg_circle_white"
79            android:contentDescription="@string/alarm_alert_snooze_text"
80            app:layout_row="2"
81            app:layout_column="0"
82            app:layout_columnWeight="1"
83            app:layout_gravity="center"
84            app:backgroundTint="?attr/colorAccent"
85            app:srcCompat="@drawable/ic_snooze" />
86
87        <ImageView
88            android:id="@+id/dismiss"
89            android:layout_width="wrap_content"
90            android:layout_height="wrap_content"
91            android:background="@drawable/bg_circle_white"
92            android:contentDescription="@string/alarm_alert_dismiss_text"
93            app:layout_row="2"
94            app:layout_column="2"
95            app:layout_columnWeight="1"
96            app:layout_gravity="center"
97            app:srcCompat="@drawable/ic_dismiss" />
98
99        <ImageView
100            android:id="@+id/alarm"
101            android:layout_width="wrap_content"
102            android:layout_height="wrap_content"
103            android:background="@android:color/transparent"
104            android:contentDescription="@string/description_direction_both"
105            android:paddingBottom="@dimen/alarm_lockscreen_alarm_vertical_padding"
106            android:paddingLeft="@dimen/alarm_lockscreen_alarm_horizontal_padding"
107            android:paddingRight="@dimen/alarm_lockscreen_alarm_horizontal_padding"
108            android:paddingTop="@dimen/alarm_lockscreen_alarm_vertical_padding"
109            app:layout_row="2"
110            app:layout_column="1"
111            app:layout_columnWeight="1"
112            app:layout_gravity="center"
113            app:srcCompat="@drawable/ic_fab_alarm" />
114
115        <TextView
116            android:id="@+id/hint"
117            android:layout_width="wrap_content"
118            android:layout_height="wrap_content"
119            android:layout_marginBottom="@dimen/alarm_lockscreen_bottom_margin"
120            android:textColor="@android:color/white"
121            android:textSize="@dimen/bottom_text_size"
122            android:visibility="gone"
123            app:layout_row="2"
124            app:layout_column="0"
125            app:layout_columnSpan="3"
126            app:layout_gravity="bottom|center_horizontal" />
127
128    </androidx.gridlayout.widget.GridLayout>
129
130    <LinearLayout
131        android:id="@+id/alert"
132        android:layout_width="wrap_content"
133        android:layout_height="wrap_content"
134        android:layout_gravity="center"
135        android:orientation="vertical"
136        android:visibility="gone">
137
138        <TextView
139            android:id="@+id/alert_title"
140            android:layout_width="match_parent"
141            android:layout_height="wrap_content"
142            android:gravity="center_horizontal"
143            android:textAppearance="@style/alarm_lockscreen_thin"
144            android:textColor="@android:color/white" />
145
146        <TextView
147            android:id="@+id/alert_info"
148            android:layout_width="match_parent"
149            android:layout_height="wrap_content"
150            android:gravity="center_horizontal"
151            android:textAppearance="@style/alarm_lockscreen_thin"
152            android:textColor="@android:color/white"
153            android:textStyle="bold"
154            android:visibility="gone" />
155
156    </LinearLayout>
157
158</FrameLayout>
159