<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2015 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->


<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/recent_tabs_list_item_layout"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:minHeight="@dimen/recent_tabs_foreign_session_group_item_height"
    android:paddingStart="@dimen/recent_tabs_list_item_side_padding"
    android:paddingEnd="@dimen/recent_tabs_list_item_side_padding"
    android:background="@drawable/list_item_rounded_background_selector">

    <ImageView
        android:id="@+id/recent_tabs_favicon"
        android:layout_alignParentStart="true"
        android:layout_centerVertical="true"
        tools:ignore="ContentDescription"
        android:background="@drawable/oval_surface_1"
        style="@style/ListItemStartIcon" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_toEndOf="@id/recent_tabs_favicon"
        android:orientation="vertical"
        android:layout_centerVertical="true" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            tools:ignore="UseCompoundDrawables" >

            <ImageView
                android:id="@+id/row_icon"
                android:layout_marginStart="2dp"
                android:layout_marginEnd="8dp"
                android:layout_marginTop="6dp"
                android:layout_marginBottom="4dp"
                android:layout_width="12dp"
                android:layout_height="12dp"
                android:background="@drawable/tab_group_dialog_color_icon"
                android:importantForAccessibility="no"
                android:visibility="gone" />

            <TextView
                android:id="@+id/title_row"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:textAppearance="@style/TextAppearance.TextLarge.Primary"
                android:textAlignment="viewStart"
                android:singleLine="true"/>
        </LinearLayout>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/domain_row"
            android:ellipsize="end"
            android:singleLine="true"
            android:textAppearance="@style/TextAppearance.TextMedium.Secondary"
            android:textAlignment="viewStart"
            android:visibility="gone" />
    </LinearLayout>

</RelativeLayout>
