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

118 lines
5.5 KiB
XML
Raw Normal View History

2021-07-18 23:57:04 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
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-10-09 21:59:37 +00:00
android:nextFocusRight="@id/download_child_episode_download"
2021-11-27 18:49:51 +00:00
android:nextFocusLeft="@id/nav_rail_view"
2021-10-09 21:59:37 +00:00
android:id="@+id/download_child_episode_holder"
android:layout_width="match_parent"
android:layout_height="50dp"
2021-11-27 18:49:51 +00:00
app:cardCornerRadius="@dimen/rounded_image_radius"
2021-07-18 23:57:04 +00:00
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp"
2021-10-09 21:59:37 +00:00
android:foreground="@drawable/outline_drawable"
2021-07-18 23:57:04 +00:00
android:layout_marginBottom="5dp"
>
<androidx.core.widget.ContentLoadingProgressBar
android:id="@+id/download_child_episode_progress"
2021-10-09 21:59:37 +00:00
android:layout_marginBottom="-1.5dp"
2021-09-19 20:33:39 +00:00
android:progressTint="?attr/colorPrimary"
android:progressBackgroundTint="?attr/colorPrimary"
2021-07-18 23:57:04 +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-10-09 21:59:37 +00:00
<GridLayout
2021-10-10 21:46:51 +00:00
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2021-10-09 21:59:37 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2021-07-18 23:57:04 +00:00
<ImageView
2021-10-09 21:59:37 +00:00
android:id="@+id/download_child_episode_play"
2021-07-24 15:13:21 +00:00
android:visibility="gone"
2021-07-18 23:57:04 +00:00
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
android:src="@drawable/ic_baseline_play_arrow_24"
2021-09-03 23:24:47 +00:00
android:contentDescription="@string/episode_play_img_des"/>
2021-07-18 23:57:04 +00:00
<LinearLayout
android:layout_gravity="center_vertical"
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_marginEnd="50dp"
android:layout_width="match_parent"
2021-10-09 21:59:37 +00:00
>
2021-07-18 23:57:04 +00:00
<TextView
android:id="@+id/download_child_episode_text"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
tools:text="Episode 1 Episode 1 Episode 1 Episode 1 Episode 1 Episode 1 Episode 1"
android:scrollHorizontally="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:singleLine="true"
2021-10-31 01:17:56 +00:00
android:textColor="?attr/textColor"
android:layout_width="match_parent"
2021-07-18 23:57:04 +00:00
android:layout_height="match_parent">
</TextView>
<TextView
android:id="@+id/download_child_episode_text_extra"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
tools:text="128MB / 237MB"
2021-10-31 01:17:56 +00:00
android:textColor="?attr/grayTextColor"
2021-07-18 23:57:04 +00:00
android:layout_width="wrap_content"
android:layout_height="match_parent">
</TextView>
2021-07-24 15:13:21 +00:00
</LinearLayout>
<FrameLayout
android:layout_marginStart="-50dp"
2021-07-24 15:13:21 +00:00
android:layout_gravity="end"
android:layout_width="wrap_content"
android:layout_height="match_parent">
<androidx.core.widget.ContentLoadingProgressBar
2021-10-09 21:59:37 +00:00
android:id="@+id/download_child_episode_progress_downloaded"
2021-07-24 15:13:21 +00:00
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
android:layout_width="40dp"
android:layout_height="40dp"
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
2021-10-09 21:59:37 +00:00
android:nextFocusRight="@id/download_child_episode_holder"
android:nextFocusLeft="@id/download_child_episode_holder"
android:id="@+id/download_child_episode_download"
2021-07-24 15:13:21 +00:00
android:visibility="visible"
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
2021-07-25 14:25:09 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2021-07-24 15:13:21 +00:00
android:padding="2dp"
android:layout_width="30dp"
android:background="?selectableItemBackgroundBorderless"
android:src="@drawable/ic_baseline_play_arrow_24"
2022-01-07 19:27:25 +00:00
app:tint="?attr/textColor"
2021-09-02 16:51:13 +00:00
android:contentDescription="@string/download"/>
2021-07-24 15:13:21 +00:00
</FrameLayout>
2021-07-18 23:57:04 +00:00
</GridLayout>
</androidx.cardview.widget.CardView>