2020-12-27 16:13:13 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-01-16 21:48:02 +01:00
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="42dp"
|
2021-01-03 17:01:23 +01:00
|
|
|
android:padding="8dp"
|
2021-01-01 00:14:51 +01:00
|
|
|
android:background="?selectableItemBackgroundBorderless">
|
2020-12-27 16:13:13 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/download_icon_border"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-12-29 15:15:32 +01:00
|
|
|
android:padding="2dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-12-27 16:13:13 +01:00
|
|
|
app:srcCompat="@drawable/border_circle"
|
2021-01-22 15:10:58 +01:00
|
|
|
app:tint="?android:attr/textColorHint"
|
2020-12-27 16:13:13 +01:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/download_icon"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-12-29 15:15:32 +01:00
|
|
|
android:padding="4dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-12-27 16:13:13 +01:00
|
|
|
app:srcCompat="@drawable/ic_arrow_downward_24dp"
|
2021-01-22 15:10:58 +01:00
|
|
|
app:tint="?android:attr/textColorHint"
|
2020-12-27 16:13:13 +01:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
|
|
android:id="@+id/download_progress"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-02-06 05:13:57 +01:00
|
|
|
android:padding="1dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:indicatorColor="?android:attr/textColorHint"
|
|
|
|
app:indicatorInset="0dp"
|
|
|
|
app:indicatorSize="24dp"
|
|
|
|
app:trackThickness="2dp" />
|
|
|
|
|
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
|
|
android:id="@+id/download_queued"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-12-27 16:13:13 +01:00
|
|
|
android:indeterminate="true"
|
2020-12-31 22:19:25 +01:00
|
|
|
android:padding="1dp"
|
2020-12-27 16:13:13 +01:00
|
|
|
android:visibility="gone"
|
2021-01-22 15:10:58 +01:00
|
|
|
app:indicatorColor="?android:attr/textColorHint"
|
2020-12-27 16:13:13 +01:00
|
|
|
app:indicatorInset="0dp"
|
2021-01-16 21:48:02 +01:00
|
|
|
app:indicatorSize="24dp"
|
2020-12-27 16:13:13 +01:00
|
|
|
app:trackThickness="2dp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/downloaded_icon"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-12-29 15:15:32 +01:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:visibility="gone"
|
2020-12-27 16:13:13 +01:00
|
|
|
app:srcCompat="@drawable/ic_check_circle_24dp"
|
2021-01-04 04:47:09 +01:00
|
|
|
app:tint="?android:attr/textColorPrimary"
|
2020-12-27 16:13:13 +01:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
2020-12-27 16:44:08 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/error_icon"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-12-29 15:15:32 +01:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:visibility="gone"
|
2020-12-27 16:44:08 +01:00
|
|
|
app:srcCompat="@drawable/ic_error_outline_24dp"
|
|
|
|
app:tint="?attr/colorError"
|
|
|
|
tools:ignore="ContentDescription" />
|
2020-12-27 16:13:13 +01:00
|
|
|
|
|
|
|
</FrameLayout>
|