2020-04-23 20:38:35 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- 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/. -->
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-06-05 17:59:08 +00:00
|
|
|
android:id="@+id/tab_item"
|
2020-04-23 20:38:35 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-04-29 15:21:11 +00:00
|
|
|
android:layout_height="88dp">
|
2020-04-23 20:38:35 +00:00
|
|
|
|
2020-05-20 21:50:58 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/play_pause_button"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2020-06-01 18:36:44 +00:00
|
|
|
android:layout_marginStart="80dp"
|
|
|
|
android:layout_marginTop="4dp"
|
2020-05-20 21:50:58 +00:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/mozac_feature_media_notification_action_pause"
|
|
|
|
android:elevation="10dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/mozac_browser_tabstray_card"
|
2020-06-01 18:36:44 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-05-20 21:50:58 +00:00
|
|
|
app:srcCompat="@drawable/play_with_background" />
|
|
|
|
|
2020-04-23 20:38:35 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/mozac_browser_tabstray_card"
|
2020-04-29 15:21:11 +00:00
|
|
|
android:layout_width="92dp"
|
|
|
|
android:layout_height="69dp"
|
|
|
|
android:layout_marginStart="16dp"
|
2020-06-01 18:36:44 +00:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:cardBackgroundColor="@color/photonWhite"
|
2020-04-23 20:38:35 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-01 18:36:44 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-04-23 20:38:35 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/mozac_browser_tabstray_icon"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="28dp"
|
2020-04-29 15:21:11 +00:00
|
|
|
android:layout_marginStart="21dp"
|
2020-06-01 18:36:44 +00:00
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:visibility="invisible" />
|
2020-04-23 20:38:35 +00:00
|
|
|
|
|
|
|
<mozilla.components.browser.tabstray.thumbnail.TabThumbnailView
|
|
|
|
android:id="@+id/mozac_browser_tabstray_thumbnail"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:contentDescription="@string/mozac_browser_tabstray_open_tab" />
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/mozac_browser_tabstray_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
2020-04-29 15:21:11 +00:00
|
|
|
android:paddingStart="16dp"
|
2020-06-01 18:36:44 +00:00
|
|
|
android:paddingTop="22dp"
|
2020-05-22 17:27:46 +00:00
|
|
|
android:textColor="@color/tab_tray_item_text_normal_theme"
|
2020-06-01 18:36:44 +00:00
|
|
|
android:textSize="16sp"
|
2020-04-23 20:38:35 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/mozac_browser_tabstray_close"
|
2020-06-01 18:36:44 +00:00
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2020-04-23 20:38:35 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/mozac_browser_tabstray_card"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/mozac_browser_tabstray_url"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
2020-04-29 15:21:11 +00:00
|
|
|
android:paddingStart="16dp"
|
2020-05-22 17:27:46 +00:00
|
|
|
android:textColor="@color/tab_tray_item_url_normal_theme"
|
2020-06-01 18:36:44 +00:00
|
|
|
android:textSize="14sp"
|
2020-04-23 20:38:35 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/mozac_browser_tabstray_close"
|
2020-06-01 18:36:44 +00:00
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2020-04-23 20:38:35 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/mozac_browser_tabstray_card"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/mozac_browser_tabstray_title" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/mozac_browser_tabstray_close"
|
2020-05-05 18:16:47 +00:00
|
|
|
android:layout_width="44dp"
|
2020-05-01 20:45:51 +00:00
|
|
|
android:layout_height="match_parent"
|
2020-06-01 18:36:44 +00:00
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/close_tab"
|
|
|
|
android:tint="@color/tab_tray_item_text_normal_theme"
|
2020-04-23 20:38:35 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-06-01 18:36:44 +00:00
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2020-04-23 20:38:35 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/mozac_ic_close" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|