|
|
|
@ -2,8 +2,7 @@
|
|
|
|
|
<!-- 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.cardview.widget.CardView
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:id="@+id/item_tab"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
@ -19,8 +18,9 @@
|
|
|
|
|
app:cardElevation="5dp">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/inner_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/favicon_image"
|
|
|
|
@ -30,25 +30,25 @@
|
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/play_pause_button"
|
|
|
|
|
android:contentDescription="@string/mozac_feature_media_notification_action_pause"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:elevation="10dp"
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
|
app:srcCompat="@drawable/pause_with_background"
|
|
|
|
|
android:contentDescription="@string/mozac_feature_media_notification_action_pause"
|
|
|
|
|
android:elevation="10dp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintCircle="@id/favicon_image"
|
|
|
|
|
app:layout_constraintCircleAngle="45"
|
|
|
|
|
app:layout_constraintCircleRadius="28dp"
|
|
|
|
|
app:layout_constraintCircle="@id/favicon_image"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/favicon_image"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/favicon_image" />
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/favicon_image"
|
|
|
|
|
app:srcCompat="@drawable/pause_with_background" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/hostname"
|
|
|
|
@ -73,20 +73,20 @@
|
|
|
|
|
android:minLines="2"
|
|
|
|
|
android:textColor="?primaryText"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/favicon_image"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/hostname"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/hostname"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/favicon_image"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/hostname" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/close_tab_button"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:alpha="0.8"
|
|
|
|
|
app:srcCompat="@drawable/ic_close"
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:srcCompat="@drawable/ic_close" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/selected_border"
|
|
|
|
|