Files
lawnchair/quickstep/res/layout/task_menu.xml
Tony Wickham 2fae2a0e9c Add system shortcuts when long pressing recent icon
We add a floating view for the menu that aligns with the task icon.

If available, the following shortcuts are present:
- Widgets
- App info
- Install (for instant apps)

It is designed to be straightforward to add to this list.

Bug: 70294936

Change-Id: I56c1098353d09fc564e0e92e59e4fcf692e486ba
2018-01-02 15:44:34 -08:00

36 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2018 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.quickstep.TaskMenuView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/bg_popup_item_width"
android:layout_height="wrap_content"
android:visibility="invisible"
android:elevation="@dimen/deep_shortcuts_elevation"
android:orientation="vertical"
android:background="?attr/popupColorPrimary"
android:divider="@drawable/all_apps_divider"
android:showDividers="middle"
android:animateLayoutChanges="true">
<TextView
android:id="@+id/task_icon_and_name"
android:layout_width="match_parent"
android:layout_height="112dp"
android:textSize="14sp"
android:paddingTop="18dp"
android:drawablePadding="8dp"
android:gravity="center_horizontal"/>
</com.android.quickstep.TaskMenuView>