From 8f6d41ee53a2b2bf9122cab52333933fdb3b5ae2 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 30 Apr 2019 09:13:24 -0700 Subject: [PATCH] Fade task items when swiping out As we have a fixed width for the task list now, we have to ensure that we do not clip the task items when we swipe them out. In addition, we should fade them out by the end of the swipe as the swipe end location may still be on a visible part of the screen. Bug: 131686863 Test: Go to landscape mode, swipe out tasks Change-Id: If86136a9f9d47098a6dd5d355d3a99d540165c77 --- go/quickstep/res/layout/icon_recents_root_view.xml | 6 ++++-- .../com/android/quickstep/TaskSwipeCallback.java | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/go/quickstep/res/layout/icon_recents_root_view.xml b/go/quickstep/res/layout/icon_recents_root_view.xml index b64b7fdad6..595a380bd8 100644 --- a/go/quickstep/res/layout/icon_recents_root_view.xml +++ b/go/quickstep/res/layout/icon_recents_root_view.xml @@ -18,14 +18,16 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical"> + android:orientation="vertical" + android:clipChildren="false"> + android:clipToPadding="false" + android:clipChildren="false"/>