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

114 lines
4.9 KiB
XML
Raw Normal View History

2021-05-18 13:43:32 +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="50dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
app:cardCornerRadius="@dimen/roundedImageRadius"
2021-06-06 18:06:01 +00:00
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp"
android:id="@+id/episode_holder"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
android:layout_marginBottom="5dp"
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
android:layout_marginBottom="-1.5dp"
android:id="@+id/episode_progress"
2021-09-19 20:33:39 +00:00
android:progressTint="?attr/colorPrimary"
android:progressBackgroundTint="?attr/colorPrimary"
2021-07-15 16:45:25 +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-09-12 14:10:22 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2021-05-18 13:43:32 +00:00
<ImageView
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
android:id="@+id/episode_play"
android:src="@drawable/ic_baseline_play_arrow_24"
2021-09-12 14:10:22 +00:00
android:contentDescription="@string/episode_play_img_des"
android:layout_height="match_parent"
android:layout_width="wrap_content"
/>
<!--marquee_forever-->
2021-05-18 13:43:32 +00:00
<TextView
android:id="@+id/episode_text"
android:layout_marginStart="10dp"
2021-09-12 14:10:22 +00:00
android:layout_marginEnd="50dp"
android:layout_gravity="center_vertical"
android:gravity="center_vertical" tools:text="Episode 1"
android:textColor="@color/textColor"
android:scrollHorizontally="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="0"
android:singleLine="true"
android:layout_width="match_parent"
2021-05-18 13:43:32 +00:00
android:layout_height="match_parent">
</TextView>
2021-09-12 14:10:22 +00:00
</LinearLayout>
2021-07-24 23:16:30 +00:00
2021-09-12 14:10:22 +00:00
<FrameLayout
android:layout_gravity="end"
android:layout_width="wrap_content"
android:layout_height="match_parent">
<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"
android:visibility="visible"
/>
<ImageView
android:visibility="visible"
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="2dp"
android:layout_width="30dp"
android:id="@+id/result_episode_download"
android:background="?selectableItemBackgroundBorderless"
android:src="@drawable/ic_baseline_play_arrow_24"
android:contentDescription="@string/download"/>
</FrameLayout>
2021-05-18 13:43:32 +00:00
</androidx.cardview.widget.CardView>