1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2024 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:app="http://schemas.android.com/apk/res-auto" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:layout_width="wrap_content" 20 android:layout_height="wrap_content" 21 android:minHeight="@dimen/accessibility_min_height"> 22 23 24 <!-- We intentionally wrap this linear layout with a frame layout to implement a shorter visual 25 height while maintaining a larger tap area height of at least 48 dp for a11y --> 26 <LinearLayout 27 android:id="@+id/tab_container" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:minHeight="@dimen/floating_tab_toolbar_tab_min_height" 31 android:background="@drawable/floating_tab_toolbar_tab_background" 32 android:layout_gravity="center" 33 android:gravity="center_vertical" 34 android:paddingVertical="@dimen/floating_tab_toolbar_tab_vertical_padding" 35 android:paddingHorizontal="@dimen/floating_tab_toolbar_tab_horizontal_padding" 36 tools:ignore="UselessParent"> 37 38 <ImageView 39 android:id="@+id/tab_icon" 40 android:layout_width="@dimen/floating_tab_toolbar_tab_icon_size" 41 android:layout_height="@dimen/floating_tab_toolbar_tab_icon_size" 42 android:layout_marginEnd="@dimen/floating_tab_toolbar_tab_icon_margin_end" 43 app:tint="@color/system_on_surface" 44 android:src="@drawable/ic_delete" 45 android:importantForAccessibility="no" /> 46 47 <TextView 48 android:id="@+id/label_text" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps" 52 android:textColor="@color/text_color_primary" 53 android:gravity="center" 54 android:lines="1" 55 android:text="@string/tab_placeholder_text"/> 56 57 </LinearLayout> 58</FrameLayout>