From eda02641a2ebe3729ea2259fea044be699456d43 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 17 Apr 2019 09:28:36 -0700 Subject: [PATCH] Move clear all to recycler view (1/2) First part of moving clear all button to recycler view. This CL adds support in the recycler view adapter for a clear all holder type and hooks it up to the previous clear all animation. Adding this breaks several assumptions made externally on the type of the item and index which will be addressed in the second part. Bug: 114136250 Test: Builds, testing pending 2nd part Change-Id: Ib16790028d4e9f520945a987b3dace40d19f2468 (cherry pick from 8573ff04b4148c47222abd1a89d99eda734290c3) --- go/quickstep/res/layout/clear_all_button.xml | 28 +++++ .../res/layout/icon_recents_root_view.xml | 24 +--- .../com/android/quickstep/ClearAllHolder.java | 30 +++++ .../com/android/quickstep/TaskAdapter.java | 110 ++++++++++++------ .../quickstep/views/IconRecentsView.java | 19 +-- 5 files changed, 140 insertions(+), 71 deletions(-) create mode 100644 go/quickstep/res/layout/clear_all_button.xml create mode 100644 go/quickstep/src/com/android/quickstep/ClearAllHolder.java diff --git a/go/quickstep/res/layout/clear_all_button.xml b/go/quickstep/res/layout/clear_all_button.xml new file mode 100644 index 0000000000..eceffec42f --- /dev/null +++ b/go/quickstep/res/layout/clear_all_button.xml @@ -0,0 +1,28 @@ + + + diff --git a/go/quickstep/res/layout/icon_recents_root_view.xml b/go/quickstep/res/layout/icon_recents_root_view.xml index 6dc293f748..6fb7e19d13 100644 --- a/go/quickstep/res/layout/icon_recents_root_view.xml +++ b/go/quickstep/res/layout/icon_recents_root_view.xml @@ -19,29 +19,11 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> - - -