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

805 lines
42 KiB
XML
Raw Normal View History

2021-05-16 18:28:00 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-01-07 19:27:25 +00:00
<FrameLayout 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"
2021-05-18 13:43:32 +00:00
android:layout_width="match_parent"
android:id="@+id/result_root"
2022-01-07 19:27:25 +00:00
android:layout_height="match_parent"
2021-09-19 20:33:39 +00:00
android:background="?attr/primaryBlackBackground"
2021-05-18 13:43:32 +00:00
android:clickable="true"
2022-01-07 19:27:25 +00:00
android:focusable="true">
2021-05-16 18:28:00 +00:00
2021-12-10 23:57:11 +00:00
<com.facebook.shimmer.ShimmerFrameLayout
tools:visibility="gone"
app:shimmer_base_alpha="0.2"
app:shimmer_highlight_alpha="0.3"
app:shimmer_duration="@integer/loading_time"
app:shimmer_auto_start="true"
android:paddingTop="40dp"
android:id="@+id/result_loading"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:orientation="vertical">
<LinearLayout
android:layout_margin="@dimen/result_padding"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2022-01-07 19:27:25 +00:00
2021-12-10 23:57:11 +00:00
<LinearLayout
android:layout_marginBottom="@dimen/loading_margin"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
<include layout="@layout/loading_poster" />
2021-12-10 23:57:11 +00:00
<LinearLayout
android:layout_marginStart="@dimen/loading_margin"
android:layout_marginEnd="@dimen/loading_margin"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
<include layout="@layout/loading_line" />
<include layout="@layout/loading_line" />
<include layout="@layout/loading_line" />
<include layout="@layout/loading_line" />
<include layout="@layout/loading_line_short" />
2021-12-10 23:57:11 +00:00
</LinearLayout>
</LinearLayout>
2022-01-07 19:27:25 +00:00
<ImageView
android:layout_width="match_parent"
android:layout_height="20dp"
tools:ignore="ContentDescription" />
<include layout="@layout/loading_episode" />
<include layout="@layout/loading_episode" />
<include layout="@layout/loading_episode" />
2021-12-10 23:57:11 +00:00
</LinearLayout>
</com.facebook.shimmer.ShimmerFrameLayout>
<!--<ProgressBar
2021-06-16 16:54:07 +00:00
android:visibility="visible"
tools:visibility="gone"
android:id="@+id/result_loading"
android:layout_gravity="center"
android:layout_width="50dp" android:layout_height="50dp">
2021-12-10 23:57:11 +00:00
</ProgressBar>-->
2021-07-08 18:03:17 +00:00
<LinearLayout
2021-10-09 21:59:37 +00:00
android:id="@+id/result_loading_error"
android:visibility="gone"
tools:visibility="gone"
2021-07-08 18:03:17 +00:00
android:orientation="vertical"
2021-06-16 16:54:07 +00:00
android:layout_gravity="center"
2021-07-08 18:03:17 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
2021-07-08 18:03:17 +00:00
<com.google.android.material.button.MaterialButton
android:layout_gravity="center"
2021-10-22 13:23:48 +00:00
style="@style/WhiteButton"
2021-05-18 13:43:32 +00:00
2021-10-22 13:23:48 +00:00
android:layout_margin="5dp"
2021-07-29 15:16:08 +00:00
2021-07-08 18:03:17 +00:00
app:icon="@drawable/ic_baseline_autorenew_24"
android:text="@string/reload_error"
2021-10-22 13:23:48 +00:00
android:id="@+id/result_reload_connectionerror"
2021-07-08 18:03:17 +00:00
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:minWidth="200dp" />
2021-07-08 18:03:17 +00:00
<com.google.android.material.button.MaterialButton
android:layout_gravity="center"
2021-10-22 13:23:48 +00:00
style="@style/BlackButton"
2021-06-16 16:54:07 +00:00
2021-10-22 13:23:48 +00:00
android:layout_margin="5dp"
2021-07-29 15:16:08 +00:00
2021-07-08 18:03:17 +00:00
app:icon="@drawable/ic_baseline_public_24"
android:text="@string/result_open_in_browser"
2021-10-22 13:23:48 +00:00
android:id="@+id/result_reload_connection_open_in_browser"
2021-07-08 18:03:17 +00:00
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:minWidth="200dp" />
2021-07-08 18:03:17 +00:00
<TextView
android:layout_margin="5dp"
android:gravity="center"
android:layout_gravity="center"
android:id="@+id/result_error_text"
2021-07-29 15:16:08 +00:00
android:textColor="?attr/textColor"
2021-07-08 18:03:17 +00:00
android:layout_width="match_parent"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content" />
2021-07-08 18:03:17 +00:00
</LinearLayout>
2021-06-16 16:54:07 +00:00
<FrameLayout
android:visibility="gone"
tools:visibility="visible"
2021-06-26 17:03:22 +00:00
android:id="@+id/result_finish_loading"
android:layout_width="match_parent"
2021-06-16 16:54:07 +00:00
android:layout_height="match_parent">
2021-06-06 18:06:01 +00:00
2021-06-26 17:03:22 +00:00
<FrameLayout
2021-10-09 21:59:37 +00:00
android:id="@+id/result_poster_blur_holder"
android:visibility="visible"
2021-06-26 17:03:22 +00:00
android:layout_width="match_parent"
android:layout_height="230dp">
2022-01-07 19:27:25 +00:00
2021-06-16 16:54:07 +00:00
<ImageView
2021-10-09 21:59:37 +00:00
android:id="@+id/result_poster_blur"
2021-06-16 16:54:07 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:alpha="0"
2021-06-16 16:54:07 +00:00
tools:src="@drawable/example_poster"
2021-10-31 01:17:56 +00:00
android:background="?attr/primaryGrayBackground"
2022-01-07 19:27:25 +00:00
tools:ignore="ContentDescription" />
2021-07-30 14:09:57 +00:00
<ImageView
android:src="@drawable/background_shadow"
android:layout_gravity="bottom"
android:layout_width="match_parent"
2021-10-09 21:59:37 +00:00
android:layout_height="30dp"
2022-01-07 19:27:25 +00:00
tools:ignore="ContentDescription" />
2021-06-16 16:54:07 +00:00
</FrameLayout>
2022-01-07 19:27:25 +00:00
2021-06-16 16:54:07 +00:00
<androidx.core.widget.NestedScrollView
2021-10-09 21:59:37 +00:00
android:id="@+id/result_scroll"
android:background="?attr/primaryGrayBackground"
2021-10-09 21:59:37 +00:00
android:layout_width="match_parent"
2021-06-16 16:54:07 +00:00
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
2021-06-06 18:06:01 +00:00
<LinearLayout
android:background="?attr/primaryBlackBackground"
2021-06-16 16:54:07 +00:00
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
2022-02-04 20:49:35 +00:00
<!--
<FrameLayout
android:background="?attr/primaryGrayBackground"
android:paddingStart="@dimen/result_padding"
android:paddingEnd="@dimen/result_padding"
2021-06-26 17:03:22 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
<ImageView
android:nextFocusDown="@id/result_bookmark_button"
2021-12-11 21:23:36 +00:00
android:nextFocusRight="@id/result_share"
android:background="?android:attr/selectableItemBackgroundBorderless"
2021-06-16 16:54:07 +00:00
android:id="@+id/result_back"
android:clickable="true"
android:focusable="true"
2021-06-16 16:54:07 +00:00
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical|start"
android:src="@drawable/ic_baseline_arrow_back_24"
2022-01-07 19:27:25 +00:00
android:contentDescription="@string/go_back"
app:tint="?attr/white" />
2021-06-16 16:54:07 +00:00
<LinearLayout
android:gravity="end"
android:layout_width="match_parent"
android:layout_height="50dp"
2021-06-16 16:54:07 +00:00
android:id="@+id/media_route_button_holder"
2022-01-07 19:27:25 +00:00
android:layout_gravity="center_vertical|end">
2021-06-16 16:54:07 +00:00
<androidx.mediarouter.app.MediaRouteButton
android:layout_gravity="end|center_vertical"
2021-06-16 16:54:07 +00:00
android:id="@+id/media_route_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:mediaRouteTypes="user"
android:visibility="gone"
2022-01-07 19:27:25 +00:00
app:mediaRouteButtonTint="?attr/textColor" />
2021-12-13 18:41:33 +00:00
<ImageView
android:nextFocusUp="@id/result_back"
android:nextFocusDown="@id/result_descript"
android:nextFocusLeft="@id/result_add_sync"
2021-10-09 21:59:37 +00:00
android:nextFocusRight="@id/result_openinbrower"
2021-06-16 16:54:07 +00:00
android:id="@+id/result_share"
android:layout_width="25dp"
android:layout_height="25dp"
2022-01-07 19:27:25 +00:00
android:layout_marginEnd="10dp"
2021-06-16 16:54:07 +00:00
android:elevation="10dp"
2021-10-31 01:17:56 +00:00
2021-06-16 16:54:07 +00:00
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_outline_share_24"
android:layout_gravity="end|center_vertical"
2022-01-07 19:27:25 +00:00
android:contentDescription="@string/result_share"
app:tint="?attr/textColor" />
2021-06-16 16:54:07 +00:00
<ImageView
2021-10-09 21:59:37 +00:00
android:nextFocusUp="@id/result_back"
android:nextFocusDown="@id/result_descript"
android:nextFocusLeft="@id/result_share"
2021-11-20 00:41:37 +00:00
android:nextFocusRight="@id/result_search"
2021-10-09 21:59:37 +00:00
2021-06-16 16:54:07 +00:00
android:id="@+id/result_openinbrower"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_margin="5dp"
android:elevation="10dp"
2021-10-31 01:17:56 +00:00
2021-06-16 16:54:07 +00:00
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_baseline_public_24"
android:layout_gravity="end|center_vertical"
2022-01-07 19:27:25 +00:00
android:contentDescription="@string/result_open_in_browser"
app:tint="?attr/textColor" />
2021-11-20 00:41:37 +00:00
<ImageView
android:nextFocusUp="@id/result_back"
android:nextFocusDown="@id/result_descript"
android:nextFocusLeft="@id/result_openinbrower"
android:nextFocusRight="@id/result_bookmark_button"
android:id="@+id/result_search"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="5dp"
android:elevation="10dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/search_icon"
android:layout_gravity="end|center_vertical"
2022-01-07 19:27:25 +00:00
android:contentDescription="@string/result_open_in_browser"
app:tint="?attr/textColor" />
2021-06-16 16:54:07 +00:00
</LinearLayout>
2022-02-04 20:49:35 +00:00
</FrameLayout>-->
2022-01-07 19:27:25 +00:00
2021-07-23 23:44:54 +00:00
<LinearLayout
2021-12-11 00:13:41 +00:00
android:clipToPadding="false"
2021-07-23 23:44:54 +00:00
android:orientation="vertical"
2021-12-11 00:13:41 +00:00
android:paddingStart="@dimen/result_padding"
android:paddingEnd="@dimen/result_padding"
2021-06-16 16:54:07 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
<LinearLayout
2021-07-23 23:44:54 +00:00
android:visibility="visible"
android:layout_marginBottom="15dp"
android:layout_marginTop="10dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
<androidx.cardview.widget.CardView
android:id="@+id/result_poster_holder"
app:cardCornerRadius="@dimen/rounded_image_radius"
android:layout_width="100dp"
android:layout_height="140dp">
2022-01-07 19:27:25 +00:00
<ImageView
android:foreground="@drawable/outline_drawable"
android:id="@+id/result_poster"
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:src="@drawable/example_poster"
2022-01-07 19:27:25 +00:00
android:contentDescription="@string/result_poster_img_des" />
</androidx.cardview.widget.CardView>
2022-01-07 19:27:25 +00:00
<LinearLayout
android:layout_marginStart="10dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
<TextView
android:maxLines="2"
2022-01-31 20:47:59 +00:00
android:layout_marginBottom="5dp"
android:id="@+id/result_title"
2022-01-31 20:47:59 +00:00
tools:text="The Perfect Run The Perfect Run"
android:textSize="20sp"
android:textStyle="bold"
2022-01-07 19:27:25 +00:00
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
2022-01-31 20:47:59 +00:00
<com.lagradost.cloudstream3.widget.FlowLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/result_meta_site"
2022-01-07 19:27:25 +00:00
style="@style/SmallBlackButton"
android:layout_gravity="center_vertical"
tools:text="Gogoanime" />
2022-02-04 14:46:48 +00:00
2022-01-31 20:47:59 +00:00
<TextView
android:id="@+id/result_meta_type"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:minHeight="24dp"
android:gravity="center"
2022-01-07 19:27:25 +00:00
2022-01-31 20:47:59 +00:00
tools:text="Movie"
android:layout_gravity="center_vertical"
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
2022-02-04 14:46:48 +00:00
<TextView
2022-01-31 20:47:59 +00:00
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:minHeight="24dp"
android:gravity="center"
android:id="@+id/result_meta_year"
android:layout_marginStart="10dp"
tools:text="2021"
android:layout_gravity="center_vertical"
android:textColor="?attr/white"
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content" />
<TextView
android:id="@+id/result_meta_rating"
2022-01-31 20:47:59 +00:00
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:minHeight="24dp"
android:gravity="center"
tools:text="Rated: 8.5/10.0"
android:layout_gravity="center_vertical"
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content" />
<TextView
2022-01-31 20:47:59 +00:00
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:minHeight="24dp"
android:gravity="center"
android:id="@+id/result_meta_duration"
tools:text="121min"
android:layout_gravity="center_vertical"
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content" />
2022-01-31 20:47:59 +00:00
</com.lagradost.cloudstream3.widget.FlowLayout>
2022-01-07 19:27:25 +00:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
<TextView
android:textColor="?attr/textColor"
android:foreground="@drawable/outline_drawable"
android:paddingTop="5dp"
2021-12-25 17:23:31 +00:00
android:paddingBottom="0dp"
2021-12-10 19:48:21 +00:00
android:nextFocusUp="@id/result_back"
android:nextFocusDown="@id/result_bookmark_button"
android:id="@+id/result_descript"
android:textSize="15sp"
tools:text="Ryan Quicksave Romano is an eccentric adventurer with a strange power: he can create a save-point in time and redo his life whenever he dies. Arriving in New Rome, the glitzy capital of sin of a rebuilding Europe, he finds the city torn between mega-corporations, sponsored heroes, superpowered criminals, and true monsters. It's a time of chaos, where potions can grant the power to rule the world and dangers lurk everywhere. "
android:layout_width="match_parent"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content" />
<ImageView
android:src="@drawable/background_shadow"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_height="30dp"
2022-01-07 19:27:25 +00:00
tools:ignore="ContentDescription" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
2022-01-07 19:27:25 +00:00
2021-07-23 23:44:54 +00:00
<com.google.android.material.button.MaterialButton
2022-01-15 19:51:30 +00:00
tools:visibility="gone"
android:layout_marginTop="0dp"
android:paddingTop="0dp"
android:layout_marginStart="0dp"
2021-10-22 13:23:48 +00:00
android:layout_marginBottom="10dp"
android:minWidth="100dp"
2021-10-09 21:59:37 +00:00
app:icon="@drawable/ic_baseline_bookmark_24"
android:backgroundTint="?attr/primaryBlackBackground"
2021-07-23 23:44:54 +00:00
2021-12-10 19:48:21 +00:00
android:nextFocusLeft="@id/result_back"
android:nextFocusDown="@id/result_play_movie"
android:nextFocusUp="@id/result_descript"
android:nextFocusRight="@id/result_search"
android:layout_gravity="center_vertical"
app:cornerRadius="4dp"
android:id="@+id/result_bookmark_button"
tools:text="Bookmark"
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
style="@style/BlackButton">
<requestFocus />
2021-07-23 23:44:54 +00:00
</com.google.android.material.button.MaterialButton>
<TextView
android:textColor="?attr/grayTextColor"
android:id="@+id/result_vpn"
android:textSize="15sp"
tools:text="@string/vpn_torrent"
2022-01-07 19:27:25 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_marginBottom="5dp"
android:textColor="?attr/grayTextColor"
android:id="@+id/result_info"
android:textSize="15sp"
tools:text="@string/provider_info_meta"
2022-01-07 19:27:25 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
2021-07-25 20:50:16 +00:00
android:visibility="gone"
android:id="@+id/result_tag_holder"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/result_tags"
android:textSize="17sp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:textStyle="normal"
2022-01-07 19:27:25 +00:00
android:textColor="?attr/textColor" />
2022-01-15 19:51:30 +00:00
<com.lagradost.cloudstream3.widget.FlowLayout
android:id="@+id/result_tag"
2021-07-25 16:08:34 +00:00
android:layout_width="match_parent"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content" />
2022-01-15 19:51:30 +00:00
<com.google.android.material.button.MaterialButton
android:visibility="gone"
android:text="@string/add_sync"
android:layout_width="match_parent"
app:icon="@drawable/ic_baseline_add_24"
android:id="@+id/result_add_sync"
android:layout_gravity="center_vertical"
android:layout_marginStart="0dp"
android:layout_marginBottom="10dp"
style="@style/WhiteButton" />
2022-01-29 18:57:19 +00:00
<LinearLayout
2022-01-15 19:51:30 +00:00
tools:visibility="gone"
android:layout_marginTop="5dp"
android:orientation="vertical"
android:id="@+id/result_movie_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
<com.google.android.material.button.MaterialButton
android:layout_marginBottom="10dp"
2021-12-10 19:48:21 +00:00
android:nextFocusUp="@id/result_bookmark_button"
android:nextFocusDown="@id/result_download_movie"
android:id="@+id/result_play_movie"
style="@style/WhiteButton"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:visibility="visible"
android:layout_gravity="center_vertical"
android:text="@string/play_movie_button"
app:icon="@drawable/ic_baseline_play_arrow_24"
2022-01-07 19:27:25 +00:00
android:layout_width="match_parent" />
<com.google.android.material.button.MaterialButton
android:nextFocusUp="@id/result_play_movie"
android:nextFocusDown="@id/result_season_button"
android:layout_marginBottom="10dp"
android:id="@+id/result_download_movie"
style="@style/BlackButton"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:visibility="visible"
android:layout_gravity="center_vertical"
tools:text="Downloading"
tools:icon="@drawable/netflix_download"
android:clickable="true"
android:focusable="true"
2022-01-07 19:27:25 +00:00
android:layout_width="match_parent" />
2021-07-25 16:08:34 +00:00
<androidx.core.widget.ContentLoadingProgressBar
android:layout_width="match_parent"
android:layout_height="20dp"
2021-07-25 16:08:34 +00:00
tools:progress="50"
android:id="@+id/result_movie_progress_downloaded"
android:indeterminate="false"
style="?android:attr/progressBarStyleHorizontal"
2022-01-15 19:51:30 +00:00
android:progressBackgroundTint="?attr/colorPrimary"
2021-07-25 16:08:34 +00:00
android:max="100"
android:layout_gravity="end|center_vertical"
android:progress="0"
android:visibility="gone"
2022-01-07 19:27:25 +00:00
tools:visibility="visible" />
<TextView
android:id="@+id/result_movie_text_progress"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
tools:text="128MB / 237MB"
android:textColor="?attr/grayTextColor"
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_height="match_parent" />
</LinearLayout>
2022-02-04 14:46:48 +00:00
<LinearLayout
android:visibility="gone"
tools:visibility="visible"
android:layout_marginTop="5dp"
android:orientation="vertical"
android:id="@+id/result_series_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.button.MaterialButton
android:layout_marginBottom="10dp"
android:nextFocusUp="@id/result_bookmark_button"
android:nextFocusDown="@id/result_download_movie"
android:id="@+id/result_resume_series_button"
style="@style/WhiteButton"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:visibility="visible"
tools:visibility="visible"
android:layout_gravity="center_vertical"
android:text="@string/resume"
app:icon="@drawable/ic_baseline_play_arrow_24"
android:layout_width="match_parent" />
<com.google.android.material.button.MaterialButton
android:layout_marginBottom="10dp"
android:nextFocusUp="@id/result_bookmark_button"
android:nextFocusDown="@id/result_download_movie"
android:id="@+id/result_next_series_button"
style="@style/WhiteButton"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:visibility="gone"
android:layout_gravity="center_vertical"
android:text="@string/next_episode"
app:icon="@drawable/cast_ic_mini_controller_skip_next"
android:layout_width="match_parent" />
<TextView
android:textColor="?attr/textColor"
android:id="@+id/result_resume_series_title"
android:textStyle="bold"
android:textSize="17sp"
tools:text="S1E1 Episode 1"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.core.widget.ContentLoadingProgressBar
android:layout_height="20dp"
tools:progress="50"
android:id="@+id/result_resume_series_progress"
android:indeterminate="false"
style="?android:attr/progressBarStyleHorizontal"
android:progressBackgroundTint="?attr/colorPrimary"
android:max="100"
android:layout_gravity="end|center_vertical"
android:progress="0"
android:layout_width="match_parent"
android:layout_weight="1"
android:visibility="visible"
tools:visibility="visible" />
<TextView
android:id="@+id/result_resume_series_progress_text"
android:layout_gravity="center"
android:paddingStart="10dp"
android:gravity="center"
tools:text="69m\nremaining"
android:layout_weight="0"
android:textColor="?attr/grayTextColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:ignore="RtlSymmetry" />
</LinearLayout>
</LinearLayout>
2021-12-25 17:23:31 +00:00
<!--<TextView
android:visibility="gone"
android:drawableLeft="@drawable/ic_baseline_play_arrow_24"
android:gravity="center_vertical"
android:textSize="20sp"
android:textColor="?attr/textColor"
android:text="More like this"
android:layout_width="wrap_content" android:layout_height="60dp">
</TextView>
2021-12-13 18:41:33 +00:00
<com.google.android.material.tabs.TabLayout
android:visibility="gone"
android:layout_width="match_parent"
2021-12-13 18:41:33 +00:00
android:layout_height="wrap_content"
2021-12-25 17:23:31 +00:00
app:tabTextColor="?attr/textColor"
android:foreground="@color/transparent"
android:backgroundTint="@color/transparent"
app:tabIndicatorGravity="top"
android:textAllCaps="false"
app:tabIconTint="?attr/textColor"
app:tabIndicatorColor="?attr/textColor"
2021-12-13 18:41:33 +00:00
android:id="@+id/result_tabs"
2021-12-25 17:23:31 +00:00
app:tabGravity="start">
<com.google.android.material.tabs.TabItem
android:text="Episodes"
android:icon="@null"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</com.google.android.material.tabs.TabItem>
<com.google.android.material.tabs.TabItem
android:text="Sync"
android:icon="@null"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</com.google.android.material.tabs.TabItem>
</com.google.android.material.tabs.TabLayout>-->
2022-01-07 19:27:25 +00:00
2021-12-13 18:41:33 +00:00
<LinearLayout
android:id="@+id/result_episodes_tab"
2022-01-07 19:27:25 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-12-13 18:41:33 +00:00
android:orientation="vertical">
2022-01-07 19:27:25 +00:00
2021-12-13 18:41:33 +00:00
<LinearLayout
android:layout_marginBottom="10dp"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2022-01-07 19:27:25 +00:00
2021-12-13 18:41:33 +00:00
<com.google.android.material.button.MaterialButton
tools:visibility="visible"
tools:text="Season 1"
android:nextFocusUp="@id/result_descript"
android:nextFocusRight="@id/result_episode_select"
android:nextFocusLeft="@id/result_episode_select"
android:nextFocusDown="@id/result_episodes"
android:id="@+id/result_season_button"
android:visibility="gone"
android:layout_gravity="center_vertical"
android:layout_marginStart="0dp"
2022-01-07 19:27:25 +00:00
style="@style/MultiSelectButton" />
2021-12-13 18:41:33 +00:00
<com.google.android.material.button.MaterialButton
tools:visibility="visible"
tools:text="50-100"
android:nextFocusUp="@id/result_descript"
android:nextFocusRight="@id/result_season_button"
android:nextFocusLeft="@id/result_season_button"
android:nextFocusDown="@id/result_episodes"
android:id="@+id/result_episode_select"
android:visibility="gone"
android:layout_gravity="center_vertical"
android:layout_marginStart="0dp"
2022-01-07 19:27:25 +00:00
style="@style/MultiSelectButton" />
2021-12-13 18:41:33 +00:00
<com.google.android.material.button.MaterialButton
tools:visibility="visible"
tools:text="Dubbed"
android:nextFocusUp="@id/result_descript"
android:nextFocusRight="@id/result_season_button"
android:nextFocusLeft="@id/result_season_button"
android:nextFocusDown="@id/result_episodes"
android:id="@+id/result_dub_select"
android:visibility="gone"
android:layout_gravity="center_vertical"
android:layout_marginStart="0dp"
2022-01-07 19:27:25 +00:00
style="@style/MultiSelectButton" />
2021-12-13 18:41:33 +00:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/result_episodes_text"
tools:text="8 Episodes"
android:textSize="17sp"
2022-01-15 19:51:30 +00:00
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_gravity="center_vertical"
2021-12-13 18:41:33 +00:00
android:textStyle="normal"
2022-01-07 19:27:25 +00:00
android:textColor="?attr/textColor" />
2021-12-13 18:41:33 +00:00
</LinearLayout>
2021-07-25 20:50:16 +00:00
2022-01-07 19:27:25 +00:00
<com.facebook.shimmer.ShimmerFrameLayout
tools:visibility="visible"
app:shimmer_base_alpha="0.2"
app:shimmer_highlight_alpha="0.3"
app:shimmer_duration="@integer/loading_time"
app:shimmer_auto_start="true"
android:id="@+id/result_episode_loading"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:orientation="vertical">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/loading_episode" />
<include layout="@layout/loading_episode" />
<include layout="@layout/loading_episode" />
<include layout="@layout/loading_episode" />
</LinearLayout>
</com.facebook.shimmer.ShimmerFrameLayout>
<!--<androidx.core.widget.ContentLoadingProgressBar
2021-12-13 18:41:33 +00:00
android:id="@+id/result_episode_loading"
2021-06-26 22:15:19 +00:00
2021-12-13 18:41:33 +00:00
style="@style/Widget.AppCompat.ProgressBar"
android:layout_gravity="center"
android:layout_width="50dp"
2022-01-07 19:27:25 +00:00
android:layout_height="50dp" />-->
2021-12-13 18:41:33 +00:00
<androidx.recyclerview.widget.RecyclerView
android:descendantFocusability="afterDescendants"
android:id="@+id/result_episodes"
android:clipToPadding="false"
android:layout_marginTop="0dp"
android:paddingBottom="100dp"
tools:listitem="@layout/result_episode"
android:layout_width="match_parent"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content" />
</LinearLayout>
2021-06-26 22:15:19 +00:00
</LinearLayout>
2021-06-16 16:54:07 +00:00
</LinearLayout>
</androidx.core.widget.NestedScrollView>
2022-01-07 19:27:25 +00:00
2021-06-16 16:54:07 +00:00
</FrameLayout>
2021-06-10 19:43:05 +00:00
2021-05-18 13:43:32 +00:00
<!--
<androidx.cardview.widget.CardView
android:layout_width="100dp"
android:layout_height="150dp"
app:cardCornerRadius="@dimen/roundedImageRadius"
android:elevation="10dp"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:id="@+id/result_poster"
android:clickable="true"
android:focusable="true"
tools:src="@drawable/example_poster"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/search_poster_descript"/>
</androidx.cardview.widget.CardView>-->
2021-12-11 00:13:41 +00:00
</FrameLayout>