2019-02-08 19:35:48 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-02-28 17:36:45 +01:00
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
2019-04-07 03:56:18 +02:00
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-02-08 19:35:48 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-04-07 03:56:18 +02:00
|
|
|
android:id="@+id/item_tab"
|
2019-02-08 19:35:48 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="8dp"
|
2019-04-07 03:56:18 +02:00
|
|
|
android:clickable="true"
|
2019-02-28 17:36:45 +01:00
|
|
|
android:clipToPadding="false"
|
2019-04-07 03:56:18 +02:00
|
|
|
android:focusable="true"
|
|
|
|
android:foreground="?android:attr/selectableItemBackground"
|
2019-04-18 18:26:03 +02:00
|
|
|
app:cardBackgroundColor="?above"
|
2019-03-01 08:46:55 +01:00
|
|
|
app:cardCornerRadius="@dimen/tab_corner_radius"
|
|
|
|
app:cardElevation="5dp">
|
2019-02-08 19:35:48 +01:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2019-02-28 17:36:45 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-04-06 06:24:28 +02:00
|
|
|
android:layout_height="wrap_content">
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-02-28 17:36:45 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/favicon_image"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-01 08:46:55 +01:00
|
|
|
android:layout_margin="10dp"
|
2019-04-07 03:56:18 +02:00
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:minWidth="32dp"
|
|
|
|
android:minHeight="32dp"
|
2019-02-28 17:36:45 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-02-28 17:36:45 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_url"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-21 01:26:13 +01:00
|
|
|
android:layout_marginStart="12dp"
|
2019-03-01 08:46:55 +01:00
|
|
|
android:layout_marginTop="4dp"
|
2019-03-21 01:26:13 +01:00
|
|
|
android:ellipsize="none"
|
|
|
|
android:requiresFadingEdge="horizontal"
|
|
|
|
android:singleLine="true"
|
2019-04-13 00:20:49 +02:00
|
|
|
android:textColor="?primaryText"
|
2019-03-21 01:26:13 +01:00
|
|
|
android:textSize="16sp"
|
2019-02-28 17:36:45 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/close_tab_button"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/favicon_image"
|
2019-03-01 08:46:55 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@id/favicon_image" />
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-02-28 17:36:45 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/close_tab_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-21 01:26:13 +01:00
|
|
|
android:layout_marginTop="1dp"
|
2019-02-28 17:36:45 +01:00
|
|
|
android:contentDescription="@string/close_tab"
|
2019-03-21 01:26:13 +01:00
|
|
|
android:paddingStart="12dp"
|
2019-02-28 17:36:45 +01:00
|
|
|
android:paddingEnd="10dp"
|
|
|
|
android:src="@drawable/ic_close"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/text_url"
|
2019-03-21 01:26:13 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/text_url" />
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-04-10 15:52:49 +02:00
|
|
|
<org.mozilla.fenix.home.ImageViewTopCrop
|
2019-03-01 08:46:55 +01:00
|
|
|
android:id="@+id/tab_background"
|
2019-02-28 17:36:45 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="100dp"
|
2019-03-01 08:46:55 +01:00
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:adjustViewBounds="false"
|
2019-03-21 01:26:13 +01:00
|
|
|
android:focusable="false"
|
2019-04-07 03:56:18 +02:00
|
|
|
android:importantForAccessibility="no"
|
2019-04-10 15:52:49 +02:00
|
|
|
android:scaleType="matrix"
|
2019-02-28 17:36:45 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-03-01 08:46:55 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/favicon_image" />
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-03-01 08:46:55 +01:00
|
|
|
<View
|
|
|
|
android:id="@+id/selected_border"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@drawable/session_border"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-03-21 01:26:13 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-03-01 08:46:55 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-03-21 01:26:13 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-02-08 19:35:48 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-04-07 03:56:18 +02:00
|
|
|
</androidx.cardview.widget.CardView>
|