2021-08-28 16:54:12 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-08-31 11:26:17 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-08-28 16:54:12 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
2023-07-01 18:11:44 +02:00
|
|
|
<fragment
|
|
|
|
|
android:id="@+id/toolbar_fragment"
|
|
|
|
|
android:name="com.cappielloantonio.tempo.ui.fragment.ToolbarFragment"
|
2021-08-28 16:54:12 +02:00
|
|
|
android:layout_width="match_parent"
|
2023-07-01 18:11:44 +02:00
|
|
|
android:layout_height="wrap_content" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
2023-03-13 10:54:44 +01:00
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/loading_progress_bar"
|
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:indeterminate="true"
|
|
|
|
|
android:minWidth="128dp" />
|
|
|
|
|
|
2021-08-31 11:26:17 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/empty_download_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:gravity="center"
|
2022-12-29 19:09:49 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:visibility="gone">
|
2021-08-31 11:26:17 +02:00
|
|
|
|
|
|
|
|
<ImageView
|
2022-03-25 22:33:51 +01:00
|
|
|
android:id="@+id/empty_description_image_view"
|
2021-08-31 11:26:17 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
|
android:maxWidth="240dp"
|
|
|
|
|
android:maxHeight="240dp"
|
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
|
android:src="@drawable/ui_empty_list" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
2022-03-25 22:33:51 +01:00
|
|
|
android:id="@+id/title_empty_description_label"
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/LabelMedium"
|
2021-08-31 11:26:17 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingTop="12dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_info_empty_title" />
|
2021-08-31 11:26:17 +02:00
|
|
|
|
|
|
|
|
<TextView
|
2022-03-25 22:33:51 +01:00
|
|
|
android:id="@+id/subtitle_empty_description_label"
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/LabelSmall"
|
2021-08-31 11:26:17 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="56dp"
|
|
|
|
|
android:paddingEnd="56dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_info_empty_subtitle" />
|
2021-08-31 11:26:17 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-08-28 16:54:12 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:id="@+id/fragment_download_nested_scroll_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2023-03-13 10:54:44 +01:00
|
|
|
android:visibility="gone"
|
2021-09-04 21:31:27 +02:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2021-08-28 16:54:12 +02:00
|
|
|
|
2023-08-11 16:23:53 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/download_downloaded_sector"
|
2021-08-28 16:54:12 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-11 16:23:53 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingTop="16dp"
|
2021-08-28 16:54:12 +02:00
|
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
|
|
2023-08-11 16:23:53 +02:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_text_view_refreshable"
|
|
|
|
|
style="@style/TitleLarge"
|
|
|
|
|
android:layout_width="0dp"
|
2021-08-28 16:54:12 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-11 16:23:53 +02:00
|
|
|
android:text="@string/download_title_section"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/downloaded_go_back_image_view"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
2024-01-28 18:02:48 +01:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/shuffle_downloaded_text_view_clickable"
|
|
|
|
|
style="@style/TitleMedium"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/download_shuffle_all_subtitle"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/downloaded_text_view_refreshable"/>
|
|
|
|
|
|
2023-08-11 16:23:53 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/downloaded_go_back_image_view"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_marginHorizontal="12dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:background="@drawable/ic_arrow_back"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/downloaded_text_view_refreshable"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/downloaded_group_by_image_view"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/downloaded_text_view_refreshable" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
2023-08-11 16:23:53 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/downloaded_group_by_image_view"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:background="@drawable/ic_filter_list"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/downloaded_text_view_refreshable"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/downloaded_text_view_refreshable" />
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/downloaded_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:nestedScrollingEnabled="false"
|
2024-01-28 18:02:48 +01:00
|
|
|
android:paddingTop="12dp"
|
2023-08-11 16:23:53 +02:00
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2024-01-28 18:02:48 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/shuffle_downloaded_text_view_clickable" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
<include
|
2023-08-11 16:23:53 +02:00
|
|
|
android:id="@+id/download_downloaded_placeholder"
|
2021-08-28 16:54:12 +02:00
|
|
|
layout="@layout/item_placeholder_horizontal"
|
2023-08-11 16:23:53 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/downloaded_text_view_refreshable" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2021-08-28 16:54:12 +02:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
|