1<!--
2  Copyright (C) 2023 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
18    android:id="@+id/cd_bottom_sheet"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:gravity="center_horizontal"
22    android:orientation="vertical"
23    android:paddingHorizontal="@dimen/dialog_side_padding"
24    android:paddingTop="@dimen/dialog_top_padding"
25    android:background="@drawable/connected_display_dialog_bg"
26    android:paddingBottom="@dimen/dialog_bottom_padding">
27
28    <ImageView
29        android:id="@+id/connected_display_dialog_icon"
30        android:layout_width="@dimen/connected_display_dialog_logo_size"
31        android:layout_height="@dimen/connected_display_dialog_logo_size"
32        android:background="@drawable/circular_background"
33        android:backgroundTint="?androidprv:attr/materialColorSecondary"
34        android:importantForAccessibility="no"
35        android:padding="6dp"
36        android:src="@drawable/stat_sys_connected_display"
37        android:tint="?androidprv:attr/materialColorOnSecondary" />
38
39    <TextView
40        android:id="@+id/connected_display_dialog_title"
41        android:layout_width="wrap_content"
42        android:layout_height="wrap_content"
43        android:layout_marginTop="16dp"
44        android:gravity="center"
45        android:text="@string/connected_display_dialog_start_mirroring"
46        android:textAppearance="@style/TextAppearance.Dialog.Title" />
47
48    <TextView
49        android:id="@+id/dual_display_warning"
50        android:layout_width="wrap_content"
51        android:layout_height="wrap_content"
52        android:gravity="center"
53        android:visibility="gone"
54        android:layout_marginTop="16dp"
55        android:text="@string/connected_display_dialog_dual_display_stop_warning"
56        android:textAppearance="@style/TextAppearance.Dialog.Body" />
57
58    <LinearLayout
59        android:layout_width="match_parent"
60        android:layout_height="wrap_content"
61        android:layout_marginTop="16dp"
62        android:orientation="horizontal">
63
64        <Button
65            android:id="@+id/cancel"
66            style="@style/Widget.Dialog.Button.BorderButton"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:text="@string/dismiss_dialog" />
70
71        <Space
72            android:layout_width="0dp"
73            android:layout_height="match_parent"
74            android:layout_weight="1" />
75
76        <Button
77            android:id="@+id/enable_display"
78            style="@style/Widget.Dialog.Button"
79            android:layout_width="wrap_content"
80            android:layout_height="wrap_content"
81            android:text="@string/mirror_display" />
82    </LinearLayout>
83</LinearLayout>