chromium/chrome/browser/tab_resumption/java/res/layout/tab_resumption_module_local_tile_layout.xml

<?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.LocalTileView
    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"
    android:id="@+id/tab_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:paddingStart="@dimen/local_tile_tab_thumbnail_padding_start"
    android:paddingEnd="@dimen/tab_resumption_module_tile_bleed"
    android:paddingTop="@dimen/local_tile_tab_thumbnail_padding_top"
    android:paddingBottom="@dimen/tab_resumption_module_tile_bleed"
    android:orientation="horizontal"
    android:foreground="@drawable/tab_resumption_module_ripple"
    android:baselineAligned="false">

  <LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="match_parent">

    <RelativeLayout
        android:id="@+id/tab_images"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:background="@drawable/single_tab_thumbnail_background"
        tools:ignore="UselessParent">

      <org.chromium.chrome.browser.tab_ui.TabThumbnailView
          android:id="@+id/tab_thumbnail"
          android:layout_width="@dimen/single_tab_module_tab_thumbnail_size_big"
          android:layout_height="@dimen/single_tab_module_tab_thumbnail_size_big"
          android:layout_marginTop="@dimen/single_tab_thumbnail_margin"
          android:layout_marginBottom="@dimen/single_tab_thumbnail_margin"
          android:layout_marginStart="@dimen/single_tab_thumbnail_margin"
          android:layout_marginEnd="@dimen/single_tab_thumbnail_margin"
          android:layout_alignParentStart="true"
          android:adjustViewBounds="false"
          android:gravity="center_horizontal"
          android:importantForAccessibility="no"
          android:scaleType="fitCenter"
          app:cornerRadiusBottomEnd="@dimen/single_tab_thumbnail_radius"
          app:cornerRadiusBottomStart="@dimen/single_tab_thumbnail_radius"
          app:cornerRadiusTopEnd="@dimen/single_tab_thumbnail_radius"
          app:cornerRadiusTopStart="@dimen/single_tab_thumbnail_radius" />

      <ImageView
          android:id="@+id/tab_favicon_view"
          android:layout_width="24dp"
          android:layout_height="24dp"
          android:layout_marginBottom="8dp"
          android:layout_marginEnd="8dp"
          android:layout_alignBottom="@id/tab_thumbnail"
          android:layout_alignEnd="@id/tab_thumbnail"
          android:paddingTop="@dimen/favicon_padding"
          android:paddingBottom="@dimen/favicon_padding"
          android:paddingStart="@dimen/favicon_padding"
          android:paddingEnd="@dimen/favicon_padding"
          android:background="@drawable/favicon_background"
          android:elevation="4dp"
          android:importantForAccessibility="no" />
    </RelativeLayout>

  </LinearLayout>

  <LinearLayout
      android:id="@+id/tab_info"
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:paddingStart="@dimen/single_tab_module_padding_bottom"
      android:baselineAligned="false"
      android:orientation="vertical">
    <TextView
        android:id="@+id/tab_show_reason"
        android:layout_gravity="center_vertical|start"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        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="8dp"
        android:singleLine="true"
        android:visibility="gone"
        android:background="@drawable/tab_resumption_module_tile_reason_background"
        android:textAppearance="@style/TextAppearance.TextSmall.Secondary"/>
    <TextView
        android:id="@+id/tab_title_view"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:ellipsize="end"
        android:gravity="start|top"
        android:maxLines="3"
        android:textAppearance="@style/TextAppearance.Headline2Thick.Secondary"
        tools:ignore="NestedWeights"/>

    <TextView
        android:id="@+id/tab_url_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="2dp"
        android:gravity="start"
        android:singleLine="true"
        android:textAppearance="@style/TextAppearance.TextSmall.Secondary" />
  </LinearLayout>

</org.chromium.chrome.browser.tab_resumption.LocalTileView>