2019-04-23 04:49:44 +02: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.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-04-23 04:49:44 +02:00
|
|
|
|
android:id="@+id/collection_item_tab"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
|
|
|
app:cardBackgroundColor="?above"
|
|
|
|
|
app:cardCornerRadius="@dimen/tab_corner_radius"
|
|
|
|
|
app:cardElevation="5dp">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
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"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
2019-04-23 04:49:44 +02:00
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
tools:srcCompat="@tools:sample/avatars" />
|
2019-04-23 04:49:44 +02:00
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/hostname"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
2020-06-02 17:03:30 +02:00
|
|
|
|
android:ellipsize="end"
|
2019-04-23 04:49:44 +02:00
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="?secondaryText"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/favicon_image"
|
2020-06-02 17:03:30 +02:00
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tab_selected_checkbox"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
app:layout_constraintTop_toTopOf="@id/favicon_image"
|
2020-06-02 17:03:30 +02:00
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
2019-04-23 04:49:44 +02:00
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tab_title"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
android:layout_marginTop="4dp"
|
2019-04-23 04:49:44 +02:00
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
|
android:maxLines="2"
|
|
|
|
|
android:minLines="2"
|
|
|
|
|
android:textColor="?primaryText"
|
|
|
|
|
android:textSize="15sp"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-04-23 21:26:19 +02:00
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tab_selected_checkbox"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
app:layout_constraintStart_toEndOf="@id/favicon_image"
|
2019-04-23 04:49:44 +02:00
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/hostname"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
2019-04-23 07:07:15 +02:00
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/tab_selected_checkbox"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="8dp"
|
2020-03-16 17:10:02 +01:00
|
|
|
|
android:buttonTint="@color/tab_checkbox_tint"
|
2019-06-14 01:33:56 +02:00
|
|
|
|
android:clickable="false"
|
2019-04-23 07:07:15 +02:00
|
|
|
|
android:elevation="1dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-10-24 19:24:08 +02:00
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
tools:text="" />
|
2019-04-23 04:49:44 +02:00
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
</androidx.cardview.widget.CardView>
|