Test: Manual. Enable the long-press bubble menu with "adb shell settings set secure allow_bubble_menu 1". Then, long-press on a bubble to show a menu and tap the screenshot button to send a screenshot to the selected bubble. This won't work when the bubble is expanded. Change-Id: I35380a8a4775e568699cf4527c6071bf932eb715
44 lines
1.9 KiB
XML
44 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2019 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.systemui.bubbles.BubbleMenuView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:background="#66000000"
|
|
android:visibility="gone"
|
|
android:id="@+id/bubble_menu_container">
|
|
|
|
<FrameLayout
|
|
android:layout_height="@dimen/individual_bubble_size"
|
|
android:layout_width="wrap_content"
|
|
android:background="#FFFFFF"
|
|
android:id="@+id/bubble_menu_view">
|
|
|
|
<ImageView
|
|
android:id="@*android:id/icon"
|
|
android:layout_width="@dimen/global_actions_grid_item_icon_width"
|
|
android:layout_height="@dimen/global_actions_grid_item_icon_height"
|
|
android:layout_marginTop="@dimen/global_actions_grid_item_icon_top_margin"
|
|
android:layout_marginBottom="@dimen/global_actions_grid_item_icon_bottom_margin"
|
|
android:layout_marginLeft="@dimen/global_actions_grid_item_icon_side_margin"
|
|
android:layout_marginRight="@dimen/global_actions_grid_item_icon_side_margin"
|
|
android:scaleType="centerInside"
|
|
android:tint="@color/global_actions_text"
|
|
/>
|
|
</FrameLayout>
|
|
</com.android.systemui.bubbles.BubbleMenuView>
|