fefe8b6d0e
Add a button to clear all tasks to the recents Go layout and hook it up to the model. Bug: 114136250 Test: Open recents, hit clear all Change-Id: Id67310ce88053528d372e4dc21e2b011ed957646
56 lines
2.4 KiB
XML
56 lines
2.4 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.quickstep.views.IconRecentsView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:id="@+id/recent_task_content_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recent_task_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:scrollbars="none"/>
|
|
<Button
|
|
android:id="@+id/clear_all_button"
|
|
android:layout_width="@dimen/clear_all_button_width"
|
|
android:layout_height="@dimen/clear_all_button_height"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginVertical="@dimen/task_item_half_vert_margin"
|
|
android:background="@drawable/clear_all_button"
|
|
android:gravity="center"
|
|
android:text="@string/recents_clear_all"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/clear_all_button_text"
|
|
android:textSize="14sp"/>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/recent_task_empty_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="@string/recents_empty_message"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="25sp"
|
|
android:visibility="gone"/>
|
|
</com.android.quickstep.views.IconRecentsView> |