1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
21    android:id="@+id/end_session_dialog"
22    android:layout_width="@dimen/large_dialog_width"
23    android:layout_height="wrap_content"
24    android:orientation="vertical">
25
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        style="@style/Widget.SliceView.Panel"
30        android:gravity="center_vertical|center_horizontal"
31        android:layout_marginTop="@dimen/dialog_top_padding"
32        android:layout_marginBottom="@dimen/dialog_bottom_padding"
33        android:orientation="vertical">
34
35        <ImageView
36            android:id="@+id/end_icon"
37            android:gravity="center_vertical|center_horizontal"
38            android:layout_width="36dp"
39            android:layout_height="36dp"
40            android:importantForAccessibility="no"/>
41
42        <TextView
43            android:id="@+id/end_session_dialog_title"
44            android:text="@string/media_output_end_session_dialog_summary"
45            android:layout_marginTop="16dp"
46            android:layout_marginBottom="@dimen/dialog_side_padding"
47            android:layout_marginStart="@dimen/dialog_side_padding"
48            android:layout_marginEnd="@dimen/dialog_bottom_padding"
49            android:ellipsize="end"
50            android:gravity="center_vertical|center_horizontal"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:textColor="?android:attr/textColorPrimary"
54            android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
55            android:textSize="24sp"/>
56    </LinearLayout>
57
58    <LinearLayout
59        android:layout_width="match_parent"
60        android:layout_height="wrap_content"
61        android:gravity="end|center_vertical"
62        android:layout_marginTop="8dp"
63        android:layout_marginStart="@dimen/dialog_side_padding"
64        android:layout_marginEnd="@dimen/dialog_side_padding"
65        android:layout_marginBottom="@dimen/dialog_bottom_padding"
66        android:orientation="horizontal">
67        <Button
68            android:id="@+id/cancel_button"
69            android:layout_width="wrap_content"
70            android:layout_height="wrap_content"
71            android:layout_marginEnd="8dp"
72            android:text="@string/cancel"
73            android:ellipsize="end"
74            android:layout_gravity="end|center_vertical"
75            android:singleLine="true"
76            style="@style/Widget.Dialog.Button.BorderButton"
77            android:clickable="true"
78            android:focusable="true"/>
79        <Button
80            android:id="@+id/stop_button"
81            android:layout_width="wrap_content"
82            android:layout_height="wrap_content"
83            android:layout_gravity="end|center_vertical"
84            android:text="@string/media_output_end_session_dialog_stop"
85            style="@style/Widget.Dialog.Button"
86            android:singleLine="true"
87            android:ellipsize="end"
88            android:clickable="true"
89            android:focusable="true"/>
90    </LinearLayout>
91</LinearLayout>
92