2023-07-05 11:45:13 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<!--
|
|
|
|
|
Copyright (C) 2023 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.IconAppChipView
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
2024-02-05 13:18:58 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2025-05-20 16:47:17 +01:00
|
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
2023-07-05 11:45:13 +01:00
|
|
|
android:id="@+id/icon"
|
2024-02-05 13:18:58 +00:00
|
|
|
android:layout_width="@dimen/task_thumbnail_icon_menu_expanded_width"
|
|
|
|
|
android:layout_height="@dimen/task_thumbnail_icon_menu_expanded_height"
|
|
|
|
|
android:clipToOutline="true"
|
2025-03-12 07:55:04 -07:00
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="false"
|
2023-07-05 11:45:13 +01:00
|
|
|
android:importantForAccessibility="no"
|
|
|
|
|
android:autoMirrored="true"
|
2024-02-05 13:18:58 +00:00
|
|
|
android:elevation="@dimen/task_thumbnail_icon_menu_elevation"
|
2025-03-11 05:37:43 -07:00
|
|
|
android:foreground="@drawable/app_chip_fg"
|
2025-05-20 16:47:17 +01:00
|
|
|
android:background="@color/materialColorSurfaceBright"
|
|
|
|
|
launcher:focusBorderColor="@color/materialColorSecondary">
|
2023-07-05 11:45:13 +01:00
|
|
|
|
2024-02-05 13:18:58 +00:00
|
|
|
<!-- ignoring warning because the user of the anchor is a Rect where RTL is not needed -->
|
|
|
|
|
<!-- This anchor's bounds is in the expected location after rotations and translations are
|
|
|
|
|
applied to the parent. The same is not true of the parent so an anchor is used. -->
|
|
|
|
|
<!-- marginTop is applied in java to get the gap between chip and menu -->
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/icon_view_menu_anchor"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_gravity="left|top"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
|
tools:ignore="RtlHardcoded" />
|
2023-07-05 11:45:13 +01:00
|
|
|
|
|
|
|
|
<com.android.quickstep.views.IconView
|
|
|
|
|
android:id="@+id/icon_view"
|
2024-02-05 13:18:58 +00:00
|
|
|
android:layout_width="@dimen/task_thumbnail_icon_menu_app_icon_collapsed_size"
|
|
|
|
|
android:layout_height="@dimen/task_thumbnail_icon_menu_app_icon_collapsed_size"
|
2023-07-05 11:45:13 +01:00
|
|
|
android:focusable="false"
|
|
|
|
|
android:importantForAccessibility="no" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
2025-03-25 12:23:28 +00:00
|
|
|
android:id="@+id/icon_title"
|
|
|
|
|
android:layout_width="wrap_content"
|
2025-02-19 16:16:20 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-10-27 13:14:20 +01:00
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
|
android:maxLines="1"
|
2025-03-25 12:23:28 +00:00
|
|
|
android:singleLine="true"
|
2025-03-28 18:40:45 +00:00
|
|
|
android:ellipsize="none"
|
2023-07-05 11:45:13 +01:00
|
|
|
android:textAlignment="viewStart"
|
2023-11-21 18:53:25 +00:00
|
|
|
android:importantForAccessibility="no"
|
2025-03-28 18:40:45 +00:00
|
|
|
android:requiresFadingEdge="horizontal"
|
|
|
|
|
android:fadingEdgeLength="@dimen/task_thumbnail_icon_menu_text_fading_size"
|
2025-03-25 12:23:28 +00:00
|
|
|
android:marqueeRepeatLimit="1"
|
|
|
|
|
android:scrollHorizontally="true"
|
2023-11-21 18:53:25 +00:00
|
|
|
style="@style/IconAppChipMenuTextStyle" />
|
2023-07-05 11:45:13 +01:00
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/icon_arrow"
|
|
|
|
|
android:layout_width="@dimen/task_thumbnail_icon_menu_arrow_size"
|
2023-10-27 13:14:20 +01:00
|
|
|
android:layout_height="@dimen/task_thumbnail_icon_menu_arrow_size"
|
2023-07-05 11:45:13 +01:00
|
|
|
android:background="@drawable/icon_menu_arrow_background"
|
|
|
|
|
android:src="@drawable/ic_chevron_down"
|
|
|
|
|
android:importantForAccessibility="no" />
|
2025-03-11 05:37:43 -07:00
|
|
|
|
2023-07-05 11:45:13 +01:00
|
|
|
</com.android.quickstep.views.IconAppChipView>
|