Files
lawnchair/wmshell/res/layout/bubble_bar_menu_view.xml
2024-11-02 10:55:28 +08:00

77 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2023 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
-->
<com.android.wm.shell.bubbles.bar.BubbleBarMenuView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:minWidth="@dimen/bubble_bar_manage_menu_min_width"
android:orientation="vertical"
android:elevation="@dimen/bubble_manage_menu_elevation"
android:paddingTop="@dimen/bubble_bar_manage_menu_padding_top"
android:paddingHorizontal="@dimen/bubble_bar_manage_menu_padding"
android:paddingBottom="@dimen/bubble_bar_manage_menu_padding"
android:clipToPadding="false">
<LinearLayout
android:id="@+id/bubble_bar_manage_menu_bubble_section"
android:layout_width="match_parent"
android:layout_height="@dimen/bubble_bar_manage_menu_item_height"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingStart="14dp"
android:paddingEnd="12dp"
android:background="@drawable/bubble_manage_menu_section"
android:elevation="@dimen/bubble_manage_menu_elevation">
<ImageView
android:id="@+id/bubble_bar_manage_menu_bubble_icon"
android:layout_width="@dimen/bubble_menu_icon_size"
android:layout_height="@dimen/bubble_menu_icon_size"
android:contentDescription="@null" />
<TextView
android:id="@+id/bubble_bar_manage_menu_bubble_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="@*android:style/TextAppearance.DeviceDefault" />
<ImageView
android:id="@+id/bubble_bar_manage_menu_dismiss_icon"
android:layout_width="@dimen/bubble_bar_manage_menu_dismiss_icon_size"
android:layout_height="@dimen/bubble_bar_manage_menu_dismiss_icon_size"
android:layout_marginStart="8dp"
android:contentDescription="@null"
android:src="@drawable/ic_expand_less"
app:tint="?android:attr/textColorPrimary" />
</LinearLayout>
<LinearLayout
android:id="@+id/bubble_bar_manage_menu_actions_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="@dimen/bubble_bar_manage_menu_section_spacing"
android:background="@drawable/bubble_manage_menu_bg"
android:elevation="@dimen/bubble_manage_menu_elevation" />
</com.android.wm.shell.bubbles.bar.BubbleBarMenuView>