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/. -->
|
2020-02-06 14:00:55 +01:00
|
|
|
<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"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:focusable="true"
|
|
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
|
|
android:transitionGroup="true"
|
|
|
|
app:cardBackgroundColor="?above"
|
|
|
|
app:cardCornerRadius="@dimen/tab_corner_radius"
|
|
|
|
app:cardElevation="5dp">
|
2019-02-08 19:35:48 +01:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2020-02-06 14:00:55 +01:00
|
|
|
android:id="@+id/inner_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-02-28 17:36:45 +01:00
|
|
|
<ImageView
|
2020-02-06 14:00:55 +01:00
|
|
|
android:id="@+id/favicon_image"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-09-07 01:11:40 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/play_pause_button"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2020-02-06 14:00:55 +01:00
|
|
|
android:contentDescription="@string/mozac_feature_media_notification_action_pause"
|
|
|
|
android:elevation="10dp"
|
2019-09-07 01:11:40 +02:00
|
|
|
android:visibility="gone"
|
2020-02-06 14:00:55 +01:00
|
|
|
app:layout_constraintCircle="@id/favicon_image"
|
2019-09-07 01:11:40 +02:00
|
|
|
app:layout_constraintCircleAngle="45"
|
2019-09-12 20:36:19 +02:00
|
|
|
app:layout_constraintCircleRadius="28dp"
|
2019-09-07 01:11:40 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/favicon_image"
|
2020-02-06 14:00:55 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@id/favicon_image"
|
|
|
|
app:srcCompat="@drawable/pause_with_background" />
|
2019-09-07 01:11:40 +02:00
|
|
|
|
2019-02-28 17:36:45 +01:00
|
|
|
<TextView
|
2020-02-06 14:00:55 +01:00
|
|
|
android:id="@+id/hostname"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:ellipsize="none"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/Header12TextStyle"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/close_tab_button"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/favicon_image"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/favicon_image" />
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-04-19 22:24:59 +02:00
|
|
|
<TextView
|
2020-02-06 14:00:55 +01:00
|
|
|
android:id="@+id/tab_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:minLines="2"
|
|
|
|
android:textColor="?primaryText"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/hostname"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/favicon_image"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/hostname" />
|
2019-04-19 22:24:59 +02:00
|
|
|
|
2019-05-08 20:12:41 +02:00
|
|
|
<ImageButton
|
2020-02-06 14:00:55 +01:00
|
|
|
android:id="@+id/close_tab_button"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:alpha="0.8"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
2020-03-24 17:40:01 +01:00
|
|
|
android:contentDescription="@string/close_tab"
|
2020-02-06 14:00:55 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_close" />
|
2019-02-08 19:35:48 +01:00
|
|
|
|
2019-03-01 08:46:55 +01:00
|
|
|
<View
|
2019-09-07 01:11:40 +02:00
|
|
|
android:id="@+id/selected_border"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@drawable/session_border"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0.0" />
|
2019-02-08 19:35:48 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-04-07 03:56:18 +02:00
|
|
|
</androidx.cardview.widget.CardView>
|