mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
455 lines
18 KiB
XML
455 lines
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView 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"
|
|
app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/home_linear_layout_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
<!-- Discover music -->
|
|
<LinearLayout
|
|
android:id="@+id/home_discover_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:clipChildren="false">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:text="Music discovery" />
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/home_settings_image_view"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="@drawable/ic_settings"
|
|
android:backgroundTint="@color/bottomNavIconColor"
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- slideview -->
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/discover_song_view_pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="212dp"
|
|
android:clipToPadding="false"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Most played albums -->
|
|
<LinearLayout
|
|
android:id="@+id/home_most_played_albums_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Most played" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/most_played_albums_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="See all" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/most_played_albums_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Recently played albums -->
|
|
<LinearLayout
|
|
android:id="@+id/home_recently_played_albums_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Last played" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/recently_played_albums_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="See all" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recently_played_albums_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Fashback -->
|
|
<LinearLayout
|
|
android:id="@+id/home_flashback_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="20dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="Flashback" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/years_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Favorites -->
|
|
<LinearLayout
|
|
android:id="@+id/home_starred_tracks_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Starred tracks" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/starred_tracks_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="See all" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/starred_tracks_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/home_starred_albums_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Starred albums" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/starred_albums_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="See all" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/starred_albums_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/home_starred_artists_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Starred artists" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/starred_artists_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="See all" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/starred_artists_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Downloaded tracks -->
|
|
<LinearLayout
|
|
android:id="@+id/home_downloaded_tracks_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Downloaded" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/downloaded_tracks_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="See all" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/downloaded_tracks_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Recently added albums -->
|
|
<LinearLayout
|
|
android:id="@+id/home_recently_added_albums_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Recently added" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/recently_added_albums_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="See all" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recently_added_albums_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|