cloudstream/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"?>
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
app:cardCornerRadius="@dimen/roundedImageRadius"
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"
2021-07-15 16:45:25 +00:00
android:layout_marginBottom="10dp"
>
<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"
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"
2021-09-03 23:24:47 +00:00
android:contentDescription="@string/episode_poster_img_des">
2021-07-15 16:45:25 +00:00
</ImageView>
</androidx.cardview.widget.CardView>
<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">
<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"
android:layout_height="wrap_content">
</TextView>
<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"
android:layout_height="wrap_content">
</TextView>
</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"
android:layout_width="30dp"
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"
2021-09-02 16:51:13 +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">
<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
2021-10-31 18:28:35 +00:00
android:tint="?attr/white"
2021-07-25 14:25:09 +00:00
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"
2021-09-02 16:51:13 +00:00
android:contentDescription="@string/download"/>
2021-07-25 14:25:09 +00:00
</FrameLayout>
2021-07-15 16:45:25 +00:00
</LinearLayout>
</androidx.cardview.widget.CardView>