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

99 lines
4.9 KiB
XML
Raw Normal View History

2021-06-26 17:03:22 +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-06-26 19:32:50 +00:00
app:cardBackgroundColor="@color/itemBackground"
2021-06-26 17:03:22 +00:00
android:id="@+id/episode_holder"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2021-06-26 22:15:19 +00:00
android:layout_marginBottom="10dp"
2021-06-26 17:03:22 +00:00
>
<LinearLayout
android:padding="10dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
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 22:15:19 +00:00
2021-06-26 17:03:22 +00:00
android:layout_width="126dp"
android:layout_height="72dp"
>
<ImageView
android:id="@+id/episode_poster"
tools:src="@drawable/example_poster"
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/episode_poster">
</ImageView>
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"
android:contentDescription="@string/play_episode">
2021-06-26 17:03:22 +00:00
</ImageView>
<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-06-26 22:15:19 +00:00
android:progressTint="@color/colorPrimary"
android:progressBackgroundTint="@color/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"
android:layout_height="5dp">
</androidx.core.widget.ContentLoadingProgressBar>
2021-06-26 19:32:50 +00:00
</androidx.cardview.widget.CardView>
<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">
<TextView
android:id="@+id/episode_text"
tools:text="1. Jobless"
2021-06-26 22:15:19 +00:00
android:textStyle="bold"
2021-06-26 19:32:50 +00:00
android:textColor="@color/textColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
2021-06-26 17:03:22 +00:00
</TextView>
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-06-26 19:32:50 +00:00
android:textColor="@color/grayTextColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
2021-06-26 17:03:22 +00:00
</TextView>
</LinearLayout>
2021-07-15 16:45:25 +00:00
<ImageView
android:visibility="visible"
android:layout_marginStart="-40dp"
android:layout_height="match_parent"
android:layout_width="30dp"
android:id="@+id/episode_download"
android:background="?selectableItemBackgroundBorderless"
android:layout_gravity="center_vertical|end"
android:src="@drawable/netflix_download"
android:contentDescription="@string/download_descript"/>
2021-06-26 17:03:22 +00:00
</LinearLayout>
<TextView
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-06-26 19:32:50 +00:00
android:textColor="@color/grayTextColor"
2021-06-26 17:03:22 +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. "
android:layout_width="match_parent" android:layout_height="wrap_content">
</TextView>
</LinearLayout>
</androidx.cardview.widget.CardView>