2015-10-12 01:01:20 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-02-22 00:43:50 +01:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-02-14 14:00:44 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-12-26 21:54:10 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-13 04:29:15 +02:00
|
|
|
android:background="?selectable_library_drawable"
|
|
|
|
android:padding="4dp">
|
2015-10-12 01:01:20 +02:00
|
|
|
|
2020-04-13 04:29:15 +02:00
|
|
|
<androidx.cardview.widget.CardView
|
2020-02-22 00:43:50 +01:00
|
|
|
android:id="@+id/card"
|
2016-04-29 20:00:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="220dp"
|
2020-04-18 17:59:22 +02:00
|
|
|
app:cardCornerRadius="@dimen/card_radius">
|
2015-10-13 20:16:15 +02:00
|
|
|
|
2016-04-29 20:00:03 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:background="?attr/colorSurface"
|
|
|
|
tools:background="?attr/colorSurface"
|
2020-02-22 00:43:50 +01:00
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:src="@mipmap/ic_launcher" />
|
2016-03-12 14:22:40 +01:00
|
|
|
|
2016-04-29 20:00:03 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/gradient"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:background="@drawable/gradient_shape" />
|
2015-10-13 20:16:15 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2015-12-26 21:54:10 +01:00
|
|
|
android:layout_width="wrap_content"
|
2015-10-13 20:16:15 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-02-22 00:43:50 +01:00
|
|
|
tools:layout_editor_absoluteX="7dp"
|
|
|
|
tools:layout_editor_absoluteY="7dp">
|
|
|
|
|
2017-10-21 17:08:49 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/unread_text"
|
|
|
|
style="@style/TextAppearance.Regular.Caption.Light"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:background="@color/colorAccentDark"
|
2020-01-10 01:10:55 +01:00
|
|
|
android:paddingStart="3dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:paddingTop="1dp"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:paddingEnd="3dp"
|
|
|
|
android:paddingBottom="1dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:visibility="gone"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/download_text"
|
2017-10-21 17:08:49 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-02-22 00:43:50 +01:00
|
|
|
tools:text="120"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2017-10-21 17:08:49 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/download_text"
|
|
|
|
style="@style/TextAppearance.Regular.Caption.Light"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:background="@color/md_red_500"
|
2020-01-10 01:10:55 +01:00
|
|
|
android:paddingStart="3dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:paddingTop="1dp"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:paddingEnd="3dp"
|
|
|
|
android:paddingBottom="1dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:visibility="gone"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/local_text"
|
2017-10-21 17:08:49 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-02-22 00:43:50 +01:00
|
|
|
tools:text="120"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2017-10-21 17:08:49 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/local_text"
|
|
|
|
style="@style/TextAppearance.Regular.Caption.Light"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:background="@color/md_teal_500"
|
2020-01-10 01:10:55 +01:00
|
|
|
android:paddingStart="3dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:paddingTop="1dp"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:paddingEnd="3dp"
|
|
|
|
android:paddingBottom="1dp"
|
2017-10-21 17:08:49 +02:00
|
|
|
android:text="@string/local_source_badge"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:visibility="gone"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2017-10-21 17:08:49 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-02-22 00:43:50 +01:00
|
|
|
tools:visibility="visible" />
|
2020-04-13 04:29:15 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2015-11-24 18:45:53 +01:00
|
|
|
|
2020-04-13 04:22:26 +02:00
|
|
|
<TextView
|
2016-01-24 23:41:21 +01:00
|
|
|
android:id="@+id/title"
|
2016-03-12 14:22:40 +01:00
|
|
|
style="@style/TextAppearance.Regular.Body1.Light"
|
2015-12-26 21:54:10 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-01-09 18:23:38 +01:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-29 20:00:03 +02:00
|
|
|
android:layout_gravity="bottom"
|
2016-01-24 23:41:21 +01:00
|
|
|
android:ellipsize="end"
|
2020-04-18 20:47:22 +02:00
|
|
|
android:fontFamily="@font/ptsans_narrow_bold"
|
2016-02-14 14:00:44 +01:00
|
|
|
android:lineSpacingExtra="-4dp"
|
2016-01-24 23:41:21 +01:00
|
|
|
android:maxLines="2"
|
|
|
|
android:padding="8dp"
|
2016-03-12 14:22:40 +01:00
|
|
|
android:shadowColor="@color/textColorPrimaryLight"
|
2016-01-24 23:41:21 +01:00
|
|
|
android:shadowDx="0"
|
|
|
|
android:shadowDy="0"
|
|
|
|
android:shadowRadius="4"
|
2020-02-22 00:43:50 +01:00
|
|
|
tools:text="Sample name" />
|
2015-10-13 20:16:15 +02:00
|
|
|
|
2017-02-04 19:07:06 +01:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progress"
|
2020-02-22 00:43:50 +01:00
|
|
|
style="?android:attr/progressBarStyleSmall"
|
2017-02-04 19:07:06 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:visibility="gone" />
|
2017-02-04 19:07:06 +01:00
|
|
|
|
2020-04-13 04:29:15 +02:00
|
|
|
</androidx.cardview.widget.CardView>
|
2015-10-13 20:16:15 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
</FrameLayout>
|