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

172 lines
7.9 KiB
XML
Raw Normal View History

2021-07-18 13:02:30 +00:00
<?xml version="1.0" encoding="utf-8"?>
2021-07-19 13:19:47 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout
2021-07-18 13:02:30 +00:00
android:id="@+id/download_root"
android:orientation="vertical"
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"
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-10-31 01:17:56 +00:00
android:background="?attr/primaryGrayBackground"
2021-07-18 13:02:30 +00:00
tools:context=".ui.download.DownloadFragment">
2021-10-03 19:15:56 +00:00
2021-07-19 13:19:47 +00:00
<com.google.android.material.appbar.AppBarLayout
2021-10-31 01:17:56 +00:00
android:background="?attr/primaryGrayBackground"
2021-07-18 13:02:30 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2021-07-19 13:19:47 +00:00
<!--
For Scroll add to LinearLayout
app:layout_scrollFlags="scroll|enterAlways"
-->
2021-07-18 13:02:30 +00:00
<LinearLayout
2021-07-19 13:19:47 +00:00
android:id="@+id/download_storage_appbar"
android:visibility="gone"
android:layout_margin="10dp"
android:orientation="vertical"
2021-07-18 13:02:30 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
2021-10-31 01:17:56 +00:00
android:textColor="?attr/textColor"
2021-07-19 13:19:47 +00:00
android:layout_marginBottom="5dp"
android:text="@string/download_storage_text"
2021-07-18 13:02:30 +00:00
android:layout_width="wrap_content"
2021-07-19 13:19:47 +00:00
android:layout_height="wrap_content">
</TextView>
<LinearLayout
android:layout_marginBottom="5dp"
android:layout_width="fill_parent"
android:layout_height="12dp"
android:orientation="horizontal">
<View
android:layout_weight="0.5"
android:id="@+id/download_used"
2021-10-31 18:28:35 +00:00
android:background="?attr/white"
2021-07-19 13:19:47 +00:00
android:layout_width="0dp"
android:layout_height="match_parent"/>
<View
android:id="@+id/download_app"
android:layout_weight="0.10"
android:background="?attr/colorPrimary"
android:layout_width="0dp"
android:layout_height="match_parent"/>
<View
android:id="@+id/download_free"
android:layout_weight="0.10"
2021-10-31 18:28:35 +00:00
android:background="?attr/grayTextColor"
2021-07-19 13:19:47 +00:00
android:layout_width="0dp"
android:layout_height="match_parent"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_marginEnd="5dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:layout_gravity="center_vertical"
2021-10-31 18:28:35 +00:00
android:background="?attr/white"
2021-07-19 13:19:47 +00:00
android:layout_width="10dp"
android:layout_height="10dp"/>
<TextView
android:id="@+id/download_used_txt"
android:layout_gravity="center_vertical"
tools:text="Used • 30.58GB"
android:textSize="12sp"
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
2021-07-18 13:02:30 +00:00
2021-07-19 13:19:47 +00:00
<View
android:layout_margin="5dp"
android:layout_gravity="center_vertical"
android:background="?attr/colorPrimary"
android:layout_width="10dp"
android:layout_height="10dp"/>
<TextView
android:id="@+id/download_app_txt"
android:layout_gravity="center_vertical"
tools:text="App • 30.58GB"
android:textSize="12sp"
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<View
android:layout_margin="5dp"
android:layout_gravity="center_vertical"
2021-10-31 18:28:35 +00:00
android:background="?attr/grayTextColor"
2021-07-19 13:19:47 +00:00
android:layout_width="10dp"
android:layout_height="10dp"/>
<TextView
android:id="@+id/download_free_txt"
android:textSize="12sp"
android:layout_gravity="center_vertical"
tools:text="Free • 30.58GB"
android:textColor="?attr/textColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
2021-07-18 13:02:30 +00:00
</LinearLayout>
2021-07-19 13:19:47 +00:00
</com.google.android.material.appbar.AppBarLayout>
2021-10-03 19:15:56 +00:00
2021-07-18 13:02:30 +00:00
<androidx.recyclerview.widget.RecyclerView
2021-11-27 18:49:51 +00:00
android:nextFocusLeft="@id/nav_rail_view"
2021-10-09 21:59:37 +00:00
android:descendantFocusability="afterDescendants"
2021-09-19 20:33:39 +00:00
android:background="?attr/primaryBlackBackground"
2021-07-19 13:19:47 +00:00
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:padding="10dp"
2021-07-18 13:02:30 +00:00
android:id="@+id/download_list"
android:layout_width="match_parent"
2021-07-18 23:57:04 +00:00
tools:listitem="@layout/download_header_episode"
2021-07-19 13:19:47 +00:00
android:layout_height="match_parent">
2021-07-18 13:02:30 +00:00
</androidx.recyclerview.widget.RecyclerView>
<TextView
android:id="@+id/text_no_downloads"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:textAlignment="center"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
2021-10-03 19:15:56 +00:00
2021-12-10 23:57:11 +00:00
<!--
2021-10-03 19:15:56 +00:00
<ProgressBar
android:visibility="visible"
tools:visibility="gone"
android:id="@+id/download_loading"
android:layout_gravity="center"
android:layout_width="50dp" android:layout_height="50dp">
2021-12-10 23:57:11 +00:00
</ProgressBar>-->
<com.facebook.shimmer.ShimmerFrameLayout
android:id="@+id/download_loading"
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:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:orientation="vertical">
<LinearLayout
2021-12-11 00:13:41 +00:00
android:layout_marginStart="@dimen/loading_margin"
android:layout_marginEnd="@dimen/loading_margin"
2021-12-10 23:57:11 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/loading_downloads"/>
<include layout="@layout/loading_downloads"/>
<include layout="@layout/loading_downloads"/>
<include layout="@layout/loading_downloads"/>
<include layout="@layout/loading_downloads"/>
<include layout="@layout/loading_downloads"/>
</LinearLayout>
</com.facebook.shimmer.ShimmerFrameLayout>
2021-07-19 13:19:47 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>