<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2024 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<org.chromium.chrome.browser.tab_resumption.TabResumptionTileView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="UnusedResources"
android:id="@+id/suggestion_tile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp"
android:paddingLeft="@dimen/tab_resumption_module_tile_bleed"
android:paddingRight="@dimen/tab_resumption_module_tile_bleed"
android:paddingTop="@dimen/tab_resumption_module_tile_bleed"
android:paddingBottom="@dimen/tab_resumption_module_tile_bleed"
android:foreground="@drawable/tab_resumption_module_ripple"
android:orientation="vertical">
<org.chromium.components.browser_ui.widget.RoundedCornerImageView
android:id="@+id/tile_icon"
android:contentDescription="@string/DefaultSearchProviderSuggestURLDesc"
android:layout_width="@dimen/tab_resumption_module_single_icon_size"
android:layout_height="@dimen/tab_resumption_module_single_icon_size"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:padding="@dimen/tab_resumption_module_single_icon_padding"
android:background="@drawable/tab_resumption_module_icon_background"/>
<RelativeLayout
android:id="@+id/tile_text_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/tab_resumption_module_single_icon_sep"
android:layout_alignTop="@id/tile_icon"
android:layout_alignBottom="@id/tile_icon"
android:layout_toEndOf="@id/tile_icon"
android:layout_centerVertical="true"
android:orientation="vertical">
<TextView
android:id="@+id/tile_pre_info_text"
android:layout_gravity="center_vertical|start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:paddingStart="@dimen/tab_resumption_module_reason_padding_start"
android:paddingEnd="@dimen/tab_resumption_module_reason_padding_start"
android:paddingTop="@dimen/tab_resumption_module_reason_padding_top"
android:paddingBottom="@dimen/tab_resumption_module_reason_padding_top"
android:layout_marginBottom="5dp"
android:singleLine="true"
android:visibility="gone"
android:background="@drawable/tab_resumption_module_tile_reason_background"
android:textAppearance="@style/TextAppearance.TextSmall.Secondary"/>
<org.chromium.components.browser_ui.widget.chips.ChipView
android:id="@+id/tile_app_chip"
android:layout_gravity="center_vertical|start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:visibility="gone"
style="@style/TabResumptionAppChip" />
<TextView
android:id="@+id/tile_display_text"
android:layout_below="@id/tile_pre_info_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:scrollHorizontally="false"
android:maxLines="3"
android:textAppearance="@style/TextAppearance.Headline2Thick.Secondary"/>
<TextView
android:id="@+id/tile_post_info_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:singleLine="true"
android:ellipsize="end"
android:textAppearance="@style/TextAppearance.TextSmall.Primary"/>
</RelativeLayout>
</org.chromium.chrome.browser.tab_resumption.TabResumptionTileView>