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    android:id="@+id/bottom_sheet"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:gravity="center_vertical"
24    android:orientation="horizontal"
25    android:minHeight="@dimen/bottom_sheet_min_height"
26    android:paddingHorizontal="@dimen/bottom_sheet_padding_horizontal"
27    android:paddingVertical="@dimen/bottom_sheet_padding_vertical">
28
29    <LinearLayout
30        android:layout_width="wrap_content"
31        android:layout_height="wrap_content"
32        android:minWidth="80dp"
33        android:gravity="center"
34        android:orientation="horizontal">
35        <ImageView
36            android:id="@+id/bottom_sheet_icon"
37            android:layout_width="@dimen/bottom_sheet_icon_size"
38            android:layout_height="@dimen/bottom_sheet_icon_size"
39            android:layout_gravity="center_vertical"
40            android:tint="@color/bottom_sheet_icon_color"/>
41        <ImageView
42            android:id="@+id/bottom_sheet_second_icon"
43            android:layout_width="@dimen/bottom_sheet_icon_size"
44            android:layout_height="@dimen/bottom_sheet_icon_size"
45            android:layout_marginStart="@dimen/bottom_sheet_icon_margin"
46            android:layout_gravity="center_vertical"
47            android:tint="@color/bottom_sheet_icon_color"/>
48    </LinearLayout>
49
50    <LinearLayout
51        android:layout_width="0dp"
52        android:layout_height="wrap_content"
53        android:layout_marginStart="@dimen/bottom_sheet_padding_horizontal"
54        android:layout_weight="1"
55        android:orientation="vertical">
56        <TextView
57            android:id="@+id/bottom_sheet_title"
58            android:layout_width="match_parent"
59            android:layout_height="wrap_content"
60            android:layout_marginBottom="@dimen/bottom_sheet_title_margin_bottom"
61            android:textAppearance="@style/BottomSheet.TitleText"/>
62
63        <TextView
64            android:id="@+id/bottom_sheet_body"
65            android:layout_width="match_parent"
66            android:layout_height="wrap_content"
67            android:layout_marginBottom="@dimen/bottom_sheet_details_margin_bottom"
68            android:textAppearance="@style/BottomSheet.BodyText" />
69    </LinearLayout>
70
71    <LinearLayout
72        android:orientation="vertical"
73        android:layout_width="@dimen/bottom_sheet_actions_width"
74        android:layout_height="match_parent"
75        android:gravity="center">
76        <Button
77            android:id="@+id/bottom_sheet_positive_button"
78            style="@style/BottomSheet.ActionItem" />
79        <Space
80            android:layout_width="0dp"
81            android:layout_height="@dimen/bottom_sheet_actions_spacing" />
82        <Button
83            android:id="@+id/bottom_sheet_negative_button"
84            style="@style/BottomSheet.ActionItem" />
85    </LinearLayout>
86
87</LinearLayout>
88