blob: e84a9ffc7f0cf827738f3402d15ac62679c00386 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 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.features.tasks.SingleTabView
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/single_tab_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:background="@drawable/single_tab_background"
android:foreground="?android:attr/selectableItemBackground"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/tab_favicon_view"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
tools:ignore="ContentDescription" />
<LinearLayout
android:id="@+id/continue_browsing"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toEndOf="@+id/tab_favicon_view"
android:layout_toStartOf="@+id/chevron_right_view"
android:orientation="vertical">
<TextView
android:id="@+id/tab_switcher_title_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginTop="10dp"
android:layout_gravity="center_vertical"
android:gravity="center_vertical|start"
android:singleLine="true"
android:text="@string/tab_switcher_carousel_title"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.TextSmall.Secondary" />
<TextView
android:id="@+id/tab_title_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginBottom="10dp"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.TextMedium" />
</LinearLayout>
<ImageView
android:id="@+id/chevron_right_view"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:scaleType="centerCrop"
android:src="@drawable/chevron_right"
tools:ignore="ContentDescription" />
</RelativeLayout>
</org.chromium.chrome.features.tasks.SingleTabView>