mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
148 lines
6.8 KiB
XML
148 lines
6.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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">
|
|
|
|
<fragment
|
|
android:id="@+id/toolbar_fragment"
|
|
android:name="com.cappielloantonio.tempo.ui.fragment.ToolbarFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<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" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/empty_download_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:id="@+id/empty_description_image_view"
|
|
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
|
|
android:id="@+id/title_empty_description_label"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="12dp"
|
|
android:text="@string/download_info_empty_title" />
|
|
|
|
<TextView
|
|
android:id="@+id/subtitle_empty_description_label"
|
|
style="@style/LabelSmall"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="56dp"
|
|
android:paddingEnd="56dp"
|
|
android:text="@string/download_info_empty_subtitle" />
|
|
</LinearLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/fragment_download_nested_scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/download_downloaded_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="@dimen/global_padding_bottom"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<TextView
|
|
android:id="@+id/downloaded_text_view_refreshable"
|
|
style="@style/TitleLarge"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/download_title_section"
|
|
app:layout_constraintEnd_toStartOf="@+id/downloaded_refresh_image_view"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<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"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/downloaded_refresh_image_view"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/ic_refresh"
|
|
android:contentDescription="@string/download_refresh_button_content_description"
|
|
app:layout_constraintBottom_toBottomOf="@+id/downloaded_text_view_refreshable"
|
|
app:layout_constraintEnd_toStartOf="@id/downloaded_go_back_image_view"
|
|
app:layout_constraintStart_toEndOf="@id/downloaded_text_view_refreshable"
|
|
app:layout_constraintTop_toTopOf="@+id/downloaded_text_view_refreshable" />
|
|
|
|
<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_constraintStart_toEndOf="@id/downloaded_refresh_image_view"
|
|
app:layout_constraintTop_toTopOf="@+id/downloaded_text_view_refreshable" />
|
|
|
|
<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"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/shuffle_downloaded_text_view_clickable" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|