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