blob: f1f9b1fcf74ed2f02663d0ae811e25b1c4c48e51 [file] [log] [blame]
Robert Horvath5560f382019-07-10 10:46:38 +02001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2019 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 android:id="@+id/sleep_warning_dialog_container"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:theme="@android:style/Theme.Material.Dialog"
24 android:focusable="true">
25 <View
26 android:layout_width="match_parent"
27 android:layout_height="match_parent"
28 android:background="@android:color/black"
29 android:alpha="?android:backgroundDimAmount" />
30 <LinearLayout
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:background="@drawable/rounded_bg_full"
34 android:layout_margin="8dp"
35 android:padding="16dp"
36 android:layout_gravity="top"
37 android:orientation="vertical">
38 <TextView
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:text="@string/inattentive_sleep_warning_title"
42 android:layout_marginBottom="8dp"
43 android:textColor="?android:attr/textColorPrimary"
44 android:textAppearance="@android:style/TextAppearance.Material.Large"/>
45
46 <TextView
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:text="@string/inattentive_sleep_warning_message"
50 android:textColor="?android:attr/textColorSecondary"
51 android:textAppearance="@android:style/TextAppearance.Material"/>
52 </LinearLayout>
53</FrameLayout>