cloudstream/app/src/main/res/layout/result_episode_large.xml

152 lines
7.3 KiB
XML
Raw Normal View History

2021-06-26 17:03:22 +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-06-26 17:03:22 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2021-10-09 21:59:37 +00:00
android:nextFocusRight="@id/result_episode_download"
2022-06-18 00:30:39 +00:00
android:id="@+id/episode_holder_large"
2021-10-09 21:59:37 +00:00
2022-08-05 23:41:35 +00:00
android:layout_width="wrap_content"
2021-10-09 21:59:37 +00:00
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-10-09 21:59:37 +00:00
android:foreground="@drawable/outline_drawable"
2022-01-29 18:57:19 +00:00
android:layout_marginBottom="10dp">
2021-06-26 17:03:22 +00:00
<LinearLayout
2021-10-13 19:16:46 +00:00
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2021-06-26 17:03:22 +00:00
android:padding="10dp"
android:orientation="vertical"
2022-08-05 23:41:35 +00:00
android:layout_width="wrap_content"
2021-06-26 17:03:22 +00:00
android:layout_height="wrap_content">
2022-01-29 18:57:19 +00:00
2021-06-26 19:32:50 +00:00
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
2021-06-26 22:15:19 +00:00
<!--app:cardCornerRadius="@dimen/roundedImageRadius"-->
2021-06-26 19:32:50 +00:00
<androidx.cardview.widget.CardView
2021-06-26 17:03:22 +00:00
android:layout_width="126dp"
android:layout_height="72dp"
2022-01-29 18:57:19 +00:00
android:foreground="@drawable/outline_drawable">
2021-06-26 17:03:22 +00:00
<ImageView
2022-08-05 23:41:35 +00:00
android:nextFocusRight="@id/result_episode_download"
2021-10-09 21:59:37 +00:00
2021-06-26 17:03:22 +00:00
android:id="@+id/episode_poster"
tools:src="@drawable/example_poster"
2021-10-13 19:16:46 +00:00
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2021-06-26 17:03:22 +00:00
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-06-26 19:32:50 +00:00
<ImageView
android:src="@drawable/play_button"
android:layout_gravity="center"
android:layout_width="36dp"
android:layout_height="36dp"
2022-01-29 18:57:19 +00:00
android:contentDescription="@string/play_episode" />
2021-06-26 17:03:22 +00:00
<androidx.core.widget.ContentLoadingProgressBar
2021-06-26 22:15:19 +00:00
android:layout_marginBottom="-1.5dp"
2021-06-26 17:03:22 +00:00
android:id="@+id/episode_progress"
2021-09-19 20:33:39 +00:00
android:progressTint="?attr/colorPrimary"
android:progressBackgroundTint="?attr/colorPrimary"
2021-06-26 17:03:22 +00:00
style="@android:style/Widget.Material.ProgressBar.Horizontal"
android:layout_width="match_parent"
tools:progress="50"
android:layout_gravity="bottom"
2022-01-29 18:57:19 +00:00
android:layout_height="5dp" />
2021-06-26 19:32:50 +00:00
</androidx.cardview.widget.CardView>
2022-01-29 18:57:19 +00:00
2021-06-26 19:32:50 +00:00
<LinearLayout
android:layout_marginStart="15dp"
android:orientation="vertical"
android:layout_gravity="center"
android:layout_width="match_parent"
2021-07-15 16:45:25 +00:00
android:layout_marginEnd="50dp"
2021-06-26 19:32:50 +00:00
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
<LinearLayout
android:orientation="horizontal"
2021-06-26 19:32:50 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content">
2022-01-29 18:57:19 +00:00
2022-01-07 19:27:25 +00:00
<com.google.android.material.button.MaterialButton
android:layout_gravity="start"
style="@style/SmallBlackButton"
android:layout_marginEnd="10dp"
android:text="@string/filler"
android:id="@+id/episode_filler" />
2022-01-29 18:57:19 +00:00
2022-01-07 19:27:25 +00:00
<TextView
2022-01-29 18:57:19 +00:00
android:layout_gravity="center_vertical"
2022-01-07 19:27:25 +00:00
android:id="@+id/episode_text"
tools:text="1. Jobless"
android:textStyle="bold"
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
2022-01-29 18:57:19 +00:00
android:layout_height="wrap_content" />
2022-01-07 19:27:25 +00:00
</LinearLayout>
2021-06-26 19:32:50 +00:00
<TextView
android:id="@+id/episode_rating"
2021-06-26 22:15:19 +00:00
tools:text="Rated: 8.8"
2021-10-31 01:17:56 +00:00
android:textColor="?attr/grayTextColor"
2021-06-26 19:32:50 +00:00
android:layout_width="wrap_content"
2022-01-29 18:57:19 +00:00
android:layout_height="wrap_content" />
2021-06-26 17:03:22 +00:00
</LinearLayout>
2022-01-29 18:57:19 +00:00
2021-07-24 20:50:57 +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-24 20:50:57 +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/result_episode_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="end|center_vertical"
android:progress="0"
2022-01-29 18:57:19 +00:00
android:visibility="visible" />
2021-07-24 20:50:57 +00:00
<ImageView
2021-10-09 21:59:37 +00:00
android:nextFocusLeft="@id/episode_poster"
android:id="@+id/result_episode_download"
2021-07-24 20:50:57 +00:00
android:visibility="visible"
2021-07-25 14:25:09 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2022-06-16 19:22:25 +00:00
android:padding="10dp"
android:layout_width="50dp"
2021-07-24 20:50:57 +00:00
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-24 20:50:57 +00:00
</FrameLayout>
2021-06-26 17:03:22 +00:00
</LinearLayout>
2022-01-29 18:57:19 +00:00
2021-06-26 17:03:22 +00:00
<TextView
2022-06-18 00:30:39 +00:00
android:maxLines="4"
android:ellipsize="end"
2021-06-26 19:32:50 +00:00
android:paddingTop="10dp"
android:paddingBottom="10dp"
2021-06-26 17:03:22 +00:00
android:id="@+id/episode_descript"
2021-10-31 01:17:56 +00:00
android:textColor="?attr/grayTextColor"
2022-06-18 00:30:39 +00:00
tools:text="Jon and Daenerys arrive in Winterfell and are met with skepticism. Sam learns about the fate of his family. Cersei gives Euron the reward he aims for. Theon follows his heart. Jon and Daenerys arrive in Winterfell and are met with skepticism. Sam learns about the fate of his family. Cersei gives Euron the reward he aims for. Theon follows his heart."
2022-01-29 18:57:19 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2021-06-26 17:03:22 +00:00
</LinearLayout>
</androidx.cardview.widget.CardView>