mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
103 lines
No EOL
4.7 KiB
XML
103 lines
No EOL
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="@dimen/rounded_image_radius"
|
|
app:cardBackgroundColor="?attr/boxItemBackground"
|
|
android:id="@+id/episode_holder"
|
|
android:foreground="@drawable/outline_drawable"
|
|
android:layout_marginBottom="10dp">
|
|
|
|
<LinearLayout
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
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"
|
|
android:layout_height="104dp">
|
|
|
|
<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"
|
|
android:contentDescription="@string/episode_poster_img_des" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<LinearLayout
|
|
android:layout_marginStart="15dp"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginEnd="70dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/download_header_title"
|
|
tools:text="Perfect Run"
|
|
android:textStyle="bold"
|
|
android:textColor="?attr/textColor"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
android:id="@+id/download_header_info"
|
|
tools:text="1 episode | 285MB"
|
|
android:textColor="?attr/grayTextColor"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_marginStart="-50dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="30dp"
|
|
android:id="@+id/download_header_goto_child"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:src="@drawable/ic_baseline_keyboard_arrow_right_24"
|
|
android:contentDescription="@string/download" />
|
|
|
|
<FrameLayout
|
|
android:layout_marginStart="-50dp"
|
|
android:layout_gravity="end"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent">
|
|
|
|
<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"
|
|
android:visibility="visible" />
|
|
|
|
<ImageView
|
|
|
|
android:visibility="visible"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_height="wrap_content"
|
|
android:padding="2dp"
|
|
android:layout_width="30dp"
|
|
android:id="@+id/download_header_episode_download"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_baseline_play_arrow_24"
|
|
android:contentDescription="@string/download"
|
|
app:tint="?attr/white" />
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView> |