mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
557 lines
No EOL
28 KiB
XML
557 lines
No EOL
28 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:id="@+id/result_root"
|
|
android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:background="?attr/primaryBlackBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
>
|
|
|
|
<ProgressBar
|
|
android:visibility="visible"
|
|
tools:visibility="gone"
|
|
android:id="@+id/result_loading"
|
|
android:layout_gravity="center"
|
|
android:layout_width="50dp" android:layout_height="50dp">
|
|
</ProgressBar>
|
|
<LinearLayout
|
|
android:id="@+id/result_loading_error"
|
|
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<com.google.android.material.button.MaterialButton
|
|
android:layout_gravity="center"
|
|
style="@style/WhiteButton"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
app:icon="@drawable/ic_baseline_autorenew_24"
|
|
android:text="@string/reload_error"
|
|
android:id="@+id/result_reload_connectionerror"
|
|
android:layout_width="wrap_content"
|
|
android:minWidth="200dp"
|
|
/>
|
|
<com.google.android.material.button.MaterialButton
|
|
android:layout_gravity="center"
|
|
style="@style/BlackButton"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
app:icon="@drawable/ic_baseline_public_24"
|
|
android:text="@string/result_open_in_browser"
|
|
android:id="@+id/result_reload_connection_open_in_browser"
|
|
android:layout_width="wrap_content"
|
|
android:minWidth="200dp"
|
|
/>
|
|
<TextView
|
|
android:layout_margin="5dp"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:id="@+id/result_error_text"
|
|
android:textColor="?attr/textColor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
android:id="@+id/result_finish_loading"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/result_poster_blur_holder"
|
|
|
|
android:visibility="gone"
|
|
android:alpha="0"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="180dp">
|
|
<ImageView
|
|
android:id="@+id/result_poster_blur"
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:alpha="0.7"
|
|
tools:src="@drawable/example_poster"
|
|
android:background="?attr/primaryGrayBackground"
|
|
tools:ignore="ContentDescription"/>
|
|
<ImageView
|
|
android:src="@drawable/background_shadow"
|
|
android:layout_gravity="bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
tools:ignore="ContentDescription"/>
|
|
</FrameLayout>
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/result_scroll"
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_marginStart="@dimen/result_padding"
|
|
android:layout_marginEnd="@dimen/result_padding"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<!--
|
|
<LinearLayout android:orientation="horizontal" android:layout_width="match_parent"
|
|
android:layout_height="30dp">
|
|
<ImageView android:id="@+id/result_back" android:src="@drawable/ic_baseline_arrow_back_24"
|
|
android:layout_width="wrap_content" android:layout_height="match_parent">
|
|
|
|
</ImageView>
|
|
</LinearLayout>-->
|
|
<LinearLayout
|
|
android:layout_marginTop="@dimen/result_padding"
|
|
android:orientation="horizontal" android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/result_poster_holder"
|
|
app:cardCornerRadius="@dimen/roundedImageRadius"
|
|
android:layout_width="100dp"
|
|
android:layout_height="140dp">
|
|
<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"
|
|
android:contentDescription="@string/result_poster_img_des"/>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginStart="10dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:id="@+id/result_title"
|
|
|
|
android:layout_marginEnd="50dp"
|
|
tools:text="The Perfect Run The Perfect Run The Perfect Run"
|
|
android:textSize="20sp"
|
|
android:textStyle="normal"
|
|
android:textColor="?attr/textColor" android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
<TextView
|
|
android:id="@+id/result_metadata"
|
|
tools:text="2021\nda"
|
|
android:paddingTop="3sp"
|
|
android:lineSpacingExtra="3sp"
|
|
android:textStyle="normal"
|
|
android:textSize="15sp"
|
|
android:textColor="?attr/textColor" android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
<!--<TextView
|
|
android:id="@+id/result_rating"
|
|
tools:text="2021"
|
|
android:textStyle="normal"
|
|
android:textSize="15sp"
|
|
android:textColor="?attr/textColor" android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
</TextView>-->
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<GridLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp">
|
|
<com.google.android.material.button.MaterialButton
|
|
android:layout_marginStart="0dp"
|
|
android:nextFocusLeft="@id/result_openinbrower"
|
|
android:nextFocusDown="@id/result_descript"
|
|
android:nextFocusUp="@id/result_back"
|
|
android:nextFocusRight="@id/result_share"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
app:cornerRadius="4dp"
|
|
android:id="@+id/result_bookmark_button"
|
|
tools:text="Bookmark"
|
|
|
|
style="@style/MultiSelectButton">
|
|
<requestFocus/>
|
|
</com.google.android.material.button.MaterialButton>
|
|
|
|
|
|
<!--<ImageView
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_baseline_bookmark_border_24"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent">
|
|
|
|
</ImageView>-->
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/media_route_button_holder"
|
|
android:layout_gravity="center_vertical|end"
|
|
>
|
|
<androidx.mediarouter.app.MediaRouteButton
|
|
android:id="@+id/media_route_button"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:mediaRouteTypes="user"
|
|
android:visibility="gone"
|
|
app:mediaRouteButtonTint="?attr/textColor"
|
|
/>
|
|
<ImageView
|
|
android:nextFocusUp="@id/result_back"
|
|
android:nextFocusDown="@id/result_descript"
|
|
android:nextFocusLeft="@id/result_bookmark_button"
|
|
android:nextFocusRight="@id/result_openinbrower"
|
|
|
|
android:id="@+id/result_share"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_marginRight="10dp"
|
|
android:elevation="10dp"
|
|
|
|
android:tint="?attr/textColor"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_outline_share_24"
|
|
android:layout_gravity="center" android:contentDescription="@string/result_share">
|
|
</ImageView>
|
|
<ImageView
|
|
android:nextFocusUp="@id/result_back"
|
|
android:nextFocusDown="@id/result_descript"
|
|
android:nextFocusLeft="@id/result_share"
|
|
android:nextFocusRight="@id/result_search"
|
|
|
|
android:id="@+id/result_openinbrower"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_margin="5dp"
|
|
android:elevation="10dp"
|
|
|
|
android:tint="?attr/textColor"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_baseline_public_24"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/result_open_in_browser">
|
|
</ImageView>
|
|
|
|
<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:tint="?attr/textColor"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/search_icon"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/result_open_in_browser">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
</GridLayout>
|
|
<TextView
|
|
android:id="@+id/result_vpn"
|
|
android:textSize="15sp"
|
|
tools:text="@string/vpn_torrent"
|
|
android:layout_width="match_parent" android:layout_height="wrap_content">
|
|
</TextView>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/result_plot_header"
|
|
android:text="@string/result_plot"
|
|
android:textSize="17sp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:textStyle="normal"
|
|
android:textColor="?attr/textColor"
|
|
/>
|
|
|
|
<TextView
|
|
android:textColor="?attr/textColor"
|
|
android:padding="10dp"
|
|
android:foreground="@drawable/outline_drawable"
|
|
|
|
android:nextFocusUp="@id/result_bookmark_button"
|
|
android:nextFocusDown="@id/result_play_movie"
|
|
|
|
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" android:layout_height="wrap_content">
|
|
</TextView>
|
|
<TextView
|
|
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"
|
|
android:textColor="?attr/textColor"
|
|
/>
|
|
<com.lagradost.cloudstream3.widget.FlowLayout android:id="@+id/result_tag"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
</com.lagradost.cloudstream3.widget.FlowLayout>
|
|
<LinearLayout
|
|
android:layout_marginTop="5dp"
|
|
android:orientation="vertical"
|
|
android:id="@+id/result_movie_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_descript"
|
|
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"
|
|
android:layout_width="match_parent">
|
|
</com.google.android.material.button.MaterialButton>
|
|
<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"
|
|
android:layout_width="match_parent">
|
|
</com.google.android.material.button.MaterialButton>
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
android:layout_width="match_parent"
|
|
android:layout_height="20dp"
|
|
tools:progress="50"
|
|
android:id="@+id/result_movie_progress_downloaded"
|
|
android:indeterminate="false"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
android:max="100"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:progress="0"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"/>
|
|
<!--
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp">
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/result_movie_download"
|
|
android:layout_width="match_parent"
|
|
android:paddingEnd="40dp"
|
|
android:layout_height="40dp"
|
|
tools:progress="50"
|
|
android:id="@+id/result_movie_progress_downloaded"
|
|
android:indeterminate="false"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
android:max="100"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:progress="0"
|
|
android:visibility="visible"
|
|
tools:visibility="gone"
|
|
tools:ignore="RtlSymmetry"/>
|
|
<ImageView
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:visibility="visible"
|
|
android:layout_height="40dp"
|
|
android:layout_width="40dp"
|
|
android:layout_columnWeight="1"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:padding="2dp"
|
|
android:id="@+id/result_movie_download"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_baseline_play_arrow_24"
|
|
android:contentDescription="@string/download_descript"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
-->
|
|
<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"
|
|
android:layout_height="match_parent">
|
|
</TextView>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<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"
|
|
style="@style/MultiSelectButton">
|
|
</com.google.android.material.button.MaterialButton>
|
|
<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"
|
|
style="@style/MultiSelectButton"
|
|
/>
|
|
|
|
<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"
|
|
style="@style/MultiSelectButton"
|
|
/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/result_episodes_text"
|
|
tools:text="8 Episodes"
|
|
android:textSize="17sp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:textStyle="normal"
|
|
android:textColor="?attr/textColor"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
android:id="@+id/result_episode_loading"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"
|
|
android:layout_gravity="center"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp">
|
|
</androidx.core.widget.ContentLoadingProgressBar>
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:descendantFocusability="afterDescendants"
|
|
|
|
android:id="@+id/result_episodes"
|
|
|
|
android:layout_marginTop="0dp"
|
|
android:paddingBottom="100dp"
|
|
tools:listitem="@layout/result_episode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
/>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
<LinearLayout
|
|
android:layout_gravity="bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<fragment
|
|
app:customCastBackgroundColor="?attr/primaryBlackBackground"
|
|
app:castControlButtons="@array/cast_mini_controller_control_buttons"
|
|
android:id="@+id/cast_mini_controller"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
class="com.lagradost.cloudstream3.ui.MyMiniControllerFragment"
|
|
tools:ignore="FragmentTagUsage">
|
|
</fragment>
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
|
|
<!--
|
|
<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>-->
|
|
<ImageView
|
|
android:nextFocusDown="@id/result_bookmark_button"
|
|
android:nextFocusRight="@id/result_bookmark_button"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:id="@+id/result_back"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_margin="@dimen/result_padding"
|
|
android:layout_gravity="end"
|
|
android:tint="?attr/white"
|
|
android:src="@drawable/ic_baseline_clear_24"
|
|
android:contentDescription="@string/result_go_back">
|
|
</ImageView>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |