<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2021 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout
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:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:layout_gravity="center_vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables" >
<ImageView
android:id="@+id/icon"
android:layout_marginEnd="6dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="2dp"
android:layout_width="16dp"
android:layout_height="16dp"
android:contentDescription="@null"
android:visibility="gone" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:textAppearance="@style/TextAppearance.TextLarge.Primary" />
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/chip_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/description"
android:layout_gravity="center_vertical|start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<!-- An optional chip view. Used for history.TODO(b/331856225): Consider adding min_width
to prevent the description view from occupying the whole space. -->
<org.chromium.components.browser_ui.widget.chips.ChipView
android:id="@+id/chip"
android:layout_gravity="center_vertical|start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:visibility="gone"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="@+id/description"
app:layout_constraintStart_toEndOf="@+id/description"
app:layout_constraintTop_toTopOf="@+id/description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
style="@style/HistoryAppChip" />
</androidx.constraintlayout.widget.ConstraintLayout>
<FrameLayout
android:id="@+id/custom_content_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>