mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
134 lines
5.4 KiB
XML
134 lines
5.4 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorSurface"
|
|
app:layout_scrollFlags="scroll|enterAlways|snap">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="@drawable/ic_toolbar_tempo" />
|
|
|
|
<TextView
|
|
style="@style/HeadlineMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="@string/app_name" />
|
|
</LinearLayout>
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<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="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/download_linear_layout_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
<!-- Downloaded tracks -->
|
|
<LinearLayout
|
|
android:id="@+id/download_downloaded_tracks_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/downloaded_tracks_text_view_refreshable"
|
|
style="@style/TitleLarge"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/download_title_section" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/downloaded_tracks_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<include
|
|
android:id="@+id/download_downloaded_tracks_placeholder"
|
|
layout="@layout/item_placeholder_horizontal"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|