1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2022 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    android:id="@+id/volume_panel_dialog"
21    android:layout_width="@dimen/large_dialog_width"
22    android:layout_height="wrap_content"
23    android:orientation="vertical">
24
25    <LinearLayout
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        style="@style/Widget.SliceView.Panel"
29        android:gravity="center_vertical|center_horizontal"
30        android:layout_marginTop="@dimen/dialog_top_padding"
31        android:layout_marginBottom="@dimen/dialog_bottom_padding"
32        android:orientation="vertical">
33
34        <TextView
35            android:id="@+id/volume_panel_dialog_title"
36            android:ellipsize="end"
37            android:gravity="center_vertical|center_horizontal"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:text="@string/sound_settings"
41            android:textAppearance="@style/TextAppearance.Dialog.Title"/>
42    </LinearLayout>
43
44    <androidx.recyclerview.widget.RecyclerView
45        android:id="@+id/volume_panel_parent_layout"
46        android:scrollbars="vertical"
47        android:layout_width="match_parent"
48        android:layout_height="0dp"
49        android:minHeight="304dp"
50        android:layout_weight="1"
51        android:overScrollMode="never"/>
52
53    <LinearLayout
54        android:id="@+id/button_layout"
55        android:orientation="horizontal"
56        android:layout_width="match_parent"
57        android:layout_height="wrap_content"
58        android:layout_marginTop="@dimen/dialog_button_vertical_padding"
59        android:layout_marginStart="@dimen/dialog_side_padding"
60        android:layout_marginEnd="@dimen/dialog_side_padding"
61        android:layout_marginBottom="@dimen/dialog_bottom_padding"
62        android:baselineAligned="false"
63        android:clickable="false"
64        android:focusable="false">
65
66        <LinearLayout
67            android:layout_width="0dp"
68            android:layout_height="wrap_content"
69            android:layout_weight="1"
70            android:layout_gravity="start|center_vertical"
71            android:orientation="vertical">
72            <Button
73                android:id="@+id/settings_button"
74                android:layout_width="wrap_content"
75                android:layout_height="wrap_content"
76                android:text="@string/volume_panel_dialog_settings_button"
77                android:ellipsize="end"
78                android:maxLines="1"
79                style="@style/Widget.Dialog.Button.BorderButton"
80                android:clickable="true"
81                android:focusable="true"/>
82        </LinearLayout>
83
84        <LinearLayout
85            android:layout_width="wrap_content"
86            android:layout_height="wrap_content"
87            android:layout_marginStart="@dimen/dialog_button_horizontal_padding"
88            android:layout_gravity="end|center_vertical">
89            <Button
90                android:id="@+id/done_button"
91                android:layout_width="wrap_content"
92                android:layout_height="wrap_content"
93                android:text="@string/inline_done_button"
94                style="@style/Widget.Dialog.Button"
95                android:maxLines="1"
96                android:ellipsize="end"
97                android:clickable="true"
98                android:focusable="true"/>
99        </LinearLayout>
100    </LinearLayout>
101</LinearLayout>
102