blob: 3527ae301fa1e213743fab17f6866d1fc09f5b9d [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<merge
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:targetApi="21">
<!-- The Chrome Explore header displayed when the user has no history. -->
<include layout="@layout/open_last_tab_fallback_view"/>
<LinearLayout
android:id="@+id/open_last_tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingHorizontal="@dimen/open_last_tab_button_padding_horizontal"
android:paddingVertical="@dimen/open_last_tab_button_padding_vertical"
android:background="@drawable/hairline_border_card_background"
android:theme="@style/Theme.AppCompat.Light">
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/favicon"
android:layout_width="@dimen/open_last_tab_icon_size"
android:layout_height="@dimen/open_last_tab_icon_size"
android:layout_gravity="center_vertical"
android:scaleType="centerInside"/>
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="@dimen/open_last_tab_title_text_margin_left"
android:textAppearance="@style/TextAppearance.BlackTitle2"
android:ellipsize="end"
android:maxLines="1"/>
<TextView
android:id="@+id/timestamp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/open_last_tab_timestamp_text_margin_left"
android:textAppearance="@style/TextAppearance.BlackCaption"
android:ellipsize="end"
android:maxLines="1" />
</LinearLayout>
</merge>