AquaStream/app/src/main/res/layout/download_header_episode.xml

103 lines
4.7 KiB
XML
Raw Normal View History

2021-07-15 16:45:25 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-01-29 18:57:19 +00:00
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
2021-07-15 16:45:25 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2022-01-29 18:57:19 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-11-27 18:49:51 +00:00
app:cardCornerRadius="@dimen/rounded_image_radius"
2021-10-31 01:17:56 +00:00
app:cardBackgroundColor="?attr/boxItemBackground"
2021-07-15 16:45:25 +00:00
android:id="@+id/episode_holder"
2021-10-09 21:59:37 +00:00
android:foreground="@drawable/outline_drawable"
2022-06-29 01:20:23 +00:00
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginTop="10dp">
2022-01-29 18:57:19 +00:00
2021-07-15 16:45:25 +00:00
<LinearLayout
2021-10-10 21:46:51 +00:00
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2021-07-15 16:45:25 +00:00
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<!--app:cardCornerRadius="@dimen/roundedImageRadius"-->
<androidx.cardview.widget.CardView
android:layout_width="70dp"
2022-01-29 18:57:19 +00:00
android:layout_height="104dp">
2021-07-15 16:45:25 +00:00
<ImageView
android:id="@+id/download_header_poster"
tools:src="@drawable/example_poster"
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-01-29 18:57:19 +00:00
android:contentDescription="@string/episode_poster_img_des" />
2021-07-15 16:45:25 +00:00
</androidx.cardview.widget.CardView>
2022-01-29 18:57:19 +00:00
2021-07-15 16:45:25 +00:00
<LinearLayout
android:layout_marginStart="15dp"
android:orientation="vertical"
android:layout_gravity="center"
android:layout_width="match_parent"
2021-07-25 14:25:09 +00:00
android:layout_marginEnd="70dp"
2021-07-15 16:45:25 +00:00
android:layout_height="wrap_content">
2022-01-29 18:57:19 +00:00
2021-07-15 16:45:25 +00:00
<TextView
android:id="@+id/download_header_title"
tools:text="Perfect Run"
android:textStyle="bold"
2021-10-31 01:17:56 +00:00
android:textColor="?attr/textColor"
2021-07-15 16:45:25 +00:00
android:layout_width="wrap_content"
2022-01-29 18:57:19 +00:00
android:layout_height="wrap_content" />
2021-07-15 16:45:25 +00:00
<TextView
android:id="@+id/download_header_info"
tools:text="1 episode | 285MB"
2021-10-31 01:17:56 +00:00
android:textColor="?attr/grayTextColor"
2021-07-15 16:45:25 +00:00
android:layout_width="wrap_content"
2022-01-29 18:57:19 +00:00
android:layout_height="wrap_content" />
2021-07-15 16:45:25 +00:00
</LinearLayout>
2021-07-25 14:25:09 +00:00
2021-07-15 16:45:25 +00:00
<ImageView
2021-07-25 14:25:09 +00:00
android:layout_marginStart="-50dp"
2021-07-15 16:45:25 +00:00
android:layout_height="match_parent"
2022-06-16 19:22:25 +00:00
android:padding="50dp"
android:layout_width="50dp"
2021-07-25 14:25:09 +00:00
android:id="@+id/download_header_goto_child"
2021-07-15 16:45:25 +00:00
android:layout_gravity="center_vertical|end"
android:src="@drawable/ic_baseline_keyboard_arrow_right_24"
2022-01-29 18:57:19 +00:00
android:contentDescription="@string/download" />
2021-07-25 14:25:09 +00:00
<FrameLayout
android:layout_marginStart="-50dp"
android:layout_gravity="end"
android:layout_width="wrap_content"
android:layout_height="match_parent">
2022-01-29 18:57:19 +00:00
2021-07-25 14:25:09 +00:00
<androidx.core.widget.ContentLoadingProgressBar
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/download_header_progress_downloaded"
android:indeterminate="false"
android:progressDrawable="@drawable/circular_progress_bar"
android:background="@drawable/circle_shape"
style="?android:attr/progressBarStyleHorizontal"
android:max="100"
android:layout_margin="5dp"
android:layout_gravity="center_vertical"
android:progress="0"
2022-01-29 18:57:19 +00:00
android:visibility="visible" />
2021-07-25 14:25:09 +00:00
<ImageView
android:visibility="visible"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
2022-06-16 19:22:25 +00:00
android:padding="10dp"
android:layout_width="50dp"
2021-07-25 14:25:09 +00:00
android:id="@+id/download_header_episode_download"
android:background="?selectableItemBackgroundBorderless"
android:src="@drawable/ic_baseline_play_arrow_24"
2022-01-07 19:27:25 +00:00
android:contentDescription="@string/download"
app:tint="?attr/white" />
2021-07-25 14:25:09 +00:00
</FrameLayout>
2021-07-15 16:45:25 +00:00
</LinearLayout>
</androidx.cardview.widget.CardView>