Files
Sam Cackett 06d3d1d412 Add close button to GroupedTaskView on hover
Fix: 432235626
Flag: com.android.launcher3.show_close_button_on_taskview_hover
Test: PointerRepositoryTest && TaskUiStateMapperTest
Change-Id: I860734c6f8077bc33802d58d007cd0149f1ef1b0
2025-08-08 07:19:06 +01:00

35 lines
1.5 KiB
XML

<!--
~ Copyright (C) 2025 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.
-->
<!-- Wrapper for the task dismiss button to increase the clickable area. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/task_dismiss_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:padding="@dimen/task_dismiss_button_padding"
android:layout_margin="@dimen/task_dismiss_button_margin"
android:alpha="0">
<ImageButton
android:layout_width="@dimen/task_dismiss_button_width"
android:layout_height="@dimen/task_dismiss_button_width"
android:src="@drawable/ic_circle_dismiss"
android:background="@drawable/circle_dismiss_background"
android:backgroundTint="@color/materialColorPrimary"
android:duplicateParentState="true"
android:clickable="false"
android:contentDescription="@string/recent_task_option_remove_task" />
</FrameLayout>