From 728deff7c04eede92253aa6a45bd2fb8e0b5b7cf Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 19 Apr 2019 11:49:00 -0700 Subject: [PATCH] Add clear all view that scales off device height Add a custom clear all view that scales its height based off the height of the device in portrait. This view holds and lays out the actual button. Bug: 114136250 Test: Task items + clear all scale to fit flush with screen size Change-Id: I72b175681c104588970d57cde34cebc0f06b55a0 (cherry picked from commit a2b8ca883040a33a60968c83d6ef9c48468ffe32) --- go/quickstep/res/layout/clear_all_button.xml | 29 +++++++------ .../com/android/quickstep/TaskAdapter.java | 6 ++- .../quickstep/views/ClearAllItemView.java | 41 +++++++++++++++++++ .../quickstep/views/TaskLayoutUtils.java | 19 ++++++--- 4 files changed, 76 insertions(+), 19 deletions(-) create mode 100644 go/quickstep/src/com/android/quickstep/views/ClearAllItemView.java diff --git a/go/quickstep/res/layout/clear_all_button.xml b/go/quickstep/res/layout/clear_all_button.xml index eceffec42f..003ee860e5 100644 --- a/go/quickstep/res/layout/clear_all_button.xml +++ b/go/quickstep/res/layout/clear_all_button.xml @@ -14,15 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. --> - + +