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

103 lines
4 KiB
XML
Raw Normal View History

2021-05-18 13:43:32 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-01-07 19:27:25 +00:00
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
2023-07-15 21:43:09 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/episode_holder"
2021-10-09 21:59:37 +00:00
2023-07-15 21:43:09 +00:00
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="5dp"
2021-10-09 21:59:37 +00:00
2023-07-15 21:43:09 +00:00
android:nextFocusRight="@id/download_button"
app:cardBackgroundColor="@color/transparent"
app:cardCornerRadius="@dimen/rounded_image_radius"
2023-10-10 16:05:31 +00:00
app:cardElevation="0dp"
android:foreground="@drawable/outline_drawable"
>
2022-08-05 23:41:35 +00:00
<!--
android:nextFocusLeft="@id/result_episode_download"
-->
2021-05-18 13:43:32 +00:00
<!-- IDK BUT THIS DOES NOT SEAM LIKE A GOOD WAY OF DOING IT -->
2021-09-12 14:10:22 +00:00
<!--<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<View
android:layout_weight="0.5"
android:id="@+id/episode_view_procentage"
android:alpha="0.2"
2021-09-19 20:33:39 +00:00
android:background="?attr/colorPrimary"
2021-09-12 14:10:22 +00:00
android:layout_width="0dp"
android:layout_height="match_parent">
</View>
<View
android:id="@+id/episode_view_procentage_off"
android:layout_weight="0.10"
android:alpha="0"
android:background="@color/transparent"
android:layout_width="0dp"
android:layout_height="match_parent">
</View>
</LinearLayout>-->
2021-07-15 16:45:25 +00:00
<androidx.core.widget.ContentLoadingProgressBar
2023-07-15 21:43:09 +00:00
android:id="@+id/episode_progress"
style="@android:style/Widget.Material.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="5dp"
android:layout_gravity="bottom"
android:layout_marginBottom="-1.5dp"
android:progressBackgroundTint="?attr/colorPrimary"
android:progressTint="?attr/colorPrimary"
tools:progress="50" />
2022-01-07 19:27:25 +00:00
2021-09-12 14:10:22 +00:00
<LinearLayout
2023-07-15 21:43:09 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="?android:attr/selectableItemBackgroundBorderless">
2022-01-07 19:27:25 +00:00
2021-05-18 13:43:32 +00:00
<ImageView
2023-07-15 21:43:09 +00:00
android:id="@+id/episode_play"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:contentDescription="@string/episode_play_img_des"
android:src="@drawable/ic_baseline_play_arrow_24"
app:tint="?attr/textColor" />
2021-09-12 14:10:22 +00:00
<!--marquee_forever-->
2022-01-07 19:27:25 +00:00
<com.google.android.material.button.MaterialButton
2023-07-15 21:43:09 +00:00
android:id="@+id/episode_filler"
2023-07-18 20:35:17 +00:00
style="@style/SmallWhiteButton"
2023-07-15 21:43:09 +00:00
android:layout_gravity="center"
android:text="@string/filler" />
2022-01-07 19:27:25 +00:00
2021-05-18 13:43:32 +00:00
<TextView
2023-07-15 21:43:09 +00:00
android:id="@+id/episode_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="50dp"
android:ellipsize="marquee"
2021-09-12 14:10:22 +00:00
2023-07-15 21:43:09 +00:00
android:gravity="center_vertical"
android:marqueeRepeatLimit="0"
2021-09-12 14:10:22 +00:00
2023-07-15 21:43:09 +00:00
android:scrollHorizontally="true"
android:singleLine="true"
2021-09-12 14:10:22 +00:00
2023-07-15 21:43:09 +00:00
android:textColor="?attr/textColor"
tools:text="Episode 1" />
2021-09-12 14:10:22 +00:00
</LinearLayout>
2021-07-24 23:16:30 +00:00
2023-07-15 21:43:09 +00:00
<com.lagradost.cloudstream3.ui.download.button.PieFetchButton
android:id="@+id/download_button"
android:layout_width="@dimen/download_size"
android:layout_height="@dimen/download_size"
android:layout_gravity="center_vertical|end"
android:layout_marginStart="-50dp"
android:background="?selectableItemBackgroundBorderless"
android:padding="10dp" />
2021-05-18 13:43:32 +00:00
</androidx.cardview.widget.CardView>