88 lines
3.5 KiB
XML
88 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2021 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/bottom_sheet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:minHeight="@dimen/bottom_sheet_min_height"
|
|
android:paddingHorizontal="@dimen/bottom_sheet_padding_horizontal"
|
|
android:paddingVertical="@dimen/bottom_sheet_padding_vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="80dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:id="@+id/bottom_sheet_icon"
|
|
android:layout_width="@dimen/bottom_sheet_icon_size"
|
|
android:layout_height="@dimen/bottom_sheet_icon_size"
|
|
android:layout_gravity="center_vertical"
|
|
android:tint="@color/bottom_sheet_icon_color"/>
|
|
<ImageView
|
|
android:id="@+id/bottom_sheet_second_icon"
|
|
android:layout_width="@dimen/bottom_sheet_icon_size"
|
|
android:layout_height="@dimen/bottom_sheet_icon_size"
|
|
android:layout_marginStart="@dimen/bottom_sheet_icon_margin"
|
|
android:layout_gravity="center_vertical"
|
|
android:tint="@color/bottom_sheet_icon_color"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/bottom_sheet_padding_horizontal"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/bottom_sheet_title_margin_bottom"
|
|
android:textAppearance="@style/BottomSheet.TitleText"/>
|
|
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_body"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/bottom_sheet_details_margin_bottom"
|
|
android:textAppearance="@style/BottomSheet.BodyText" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="@dimen/bottom_sheet_actions_width"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center">
|
|
<Button
|
|
android:id="@+id/bottom_sheet_positive_button"
|
|
style="@style/BottomSheet.ActionItem" />
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/bottom_sheet_actions_spacing" />
|
|
<Button
|
|
android:id="@+id/bottom_sheet_negative_button"
|
|
style="@style/BottomSheet.ActionItem" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|