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<com.android.wm.shell.bubbles.bar.BubbleBarMenuView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:layout_gravity="center_horizontal" 23 android:minWidth="@dimen/bubble_bar_manage_menu_min_width" 24 android:orientation="vertical" 25 android:elevation="@dimen/bubble_manage_menu_elevation" 26 android:paddingTop="@dimen/bubble_bar_manage_menu_padding_top" 27 android:paddingHorizontal="@dimen/bubble_bar_manage_menu_padding" 28 android:paddingBottom="@dimen/bubble_bar_manage_menu_padding" 29 android:clipToPadding="false"> 30 31 <LinearLayout 32 android:id="@+id/bubble_bar_manage_menu_bubble_section" 33 android:layout_width="match_parent" 34 android:layout_height="@dimen/bubble_bar_manage_menu_item_height" 35 android:orientation="horizontal" 36 android:gravity="center_vertical" 37 android:paddingStart="14dp" 38 android:paddingEnd="12dp" 39 android:background="@drawable/bubble_manage_menu_section" 40 android:elevation="@dimen/bubble_manage_menu_elevation"> 41 42 <ImageView 43 android:id="@+id/bubble_bar_manage_menu_bubble_icon" 44 android:layout_width="@dimen/bubble_menu_icon_size" 45 android:layout_height="@dimen/bubble_menu_icon_size" 46 android:contentDescription="@null" /> 47 48 <TextView 49 android:id="@+id/bubble_bar_manage_menu_bubble_title" 50 android:layout_width="0dp" 51 android:layout_height="wrap_content" 52 android:layout_marginStart="8dp" 53 android:layout_weight="1" 54 android:textColor="?android:attr/textColorPrimary" 55 android:textAppearance="@*android:style/TextAppearance.DeviceDefault" /> 56 57 <ImageView 58 android:id="@+id/bubble_bar_manage_menu_dismiss_icon" 59 android:layout_width="@dimen/bubble_bar_manage_menu_dismiss_icon_size" 60 android:layout_height="@dimen/bubble_bar_manage_menu_dismiss_icon_size" 61 android:layout_marginStart="8dp" 62 android:contentDescription="@null" 63 android:src="@drawable/ic_expand_less" 64 app:tint="?android:attr/textColorPrimary" /> 65 66 </LinearLayout> 67 68 <LinearLayout 69 android:id="@+id/bubble_bar_manage_menu_actions_section" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:orientation="vertical" 73 android:layout_marginTop="@dimen/bubble_bar_manage_menu_section_spacing" 74 android:background="@drawable/bubble_manage_menu_bg" 75 android:elevation="@dimen/bubble_manage_menu_elevation" /> 76 77</com.android.wm.shell.bubbles.bar.BubbleBarMenuView>