tempus/app/src/main/res/layout/fragment_library.xml

273 lines
12 KiB
XML
Raw Normal View History

2020-11-20 15:38:08 +01:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-11-20 15:38:08 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2020-11-20 15:38:08 +01:00
<fragment
android:id="@+id/toolbar_fragment"
android:name="com.cappielloantonio.tempo.ui.fragment.ToolbarFragment"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2021-04-27 11:47:23 +02:00
<androidx.core.widget.NestedScrollView
android:id="@+id/fragment_library_nested_scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
2020-11-20 15:38:08 +01:00
<LinearLayout
2022-01-14 09:43:22 +01:00
android:id="@+id/library_linear_layout_container"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/global_padding_bottom">
2020-11-20 15:38:08 +01:00
2023-05-27 11:57:59 +02:00
<!-- Music Folder -->
<LinearLayout
android:id="@+id/library_music_folder_sector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="8dp"
android:visibility="gone"
tools:visibility="visible">
2023-05-27 11:57:59 +02:00
<TextView
style="@style/TitleLarge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingTop="16dp"
2023-05-27 11:57:59 +02:00
android:paddingEnd="16dp"
android:text="@string/library_title_music_folder" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/music_folder_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
2023-07-02 19:55:05 +02:00
android:nestedScrollingEnabled="false"
2023-05-27 11:57:59 +02:00
android:clipToPadding="false"
android:paddingStart="16dp"
android:paddingTop="8dp"
2023-05-27 11:57:59 +02:00
android:paddingEnd="8dp"
android:paddingBottom="8dp" />
2023-05-27 11:57:59 +02:00
</LinearLayout>
2022-01-14 09:43:22 +01:00
<!-- Album -->
2020-11-20 15:38:08 +01:00
<LinearLayout
android:id="@+id/library_album_sector"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
2021-04-27 11:47:23 +02:00
<!-- Album -->
<!-- Label and button -->
<LinearLayout
android:layout_width="match_parent"
2021-04-27 11:47:23 +02:00
android:layout_height="wrap_content"
android:orientation="horizontal"
2021-04-27 11:47:23 +02:00
android:paddingStart="8dp"
android:paddingTop="16dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp">
<TextView
android:id="@+id/album_catalogue_sample_text_view_refreshable"
2022-01-13 10:38:46 +01:00
style="@style/TitleLarge"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_album" />
<TextView
android:id="@+id/album_catalogue_text_view_clickable"
2022-01-13 10:38:46 +01:00
style="@style/TitleMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_album_see_all_button" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/album_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:clipToPadding="false"
android:paddingStart="16dp"
android:paddingTop="8dp"
2021-04-27 11:47:23 +02:00
android:paddingEnd="8dp"
android:paddingBottom="8dp" />
2020-11-20 15:38:08 +01:00
</LinearLayout>
2021-04-27 11:47:23 +02:00
2020-11-20 15:38:08 +01:00
<LinearLayout
android:id="@+id/library_artist_sector"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
2020-11-25 08:21:30 +01:00
<!-- Artist -->
<!-- Label and button -->
<LinearLayout
android:layout_width="match_parent"
2021-04-27 11:47:23 +02:00
android:layout_height="wrap_content"
android:orientation="horizontal"
2021-04-27 11:47:23 +02:00
android:paddingStart="8dp"
android:paddingTop="16dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp">
<TextView
android:id="@+id/artist_catalogue_sample_text_view_refreshable"
2022-01-13 10:38:46 +01:00
style="@style/TitleLarge"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_artist" />
<TextView
android:id="@+id/artist_catalogue_text_view_clickable"
2022-01-13 10:38:46 +01:00
style="@style/TitleMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_artist_see_all_button" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/artist_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:clipToPadding="false"
android:paddingStart="16dp"
android:paddingTop="8dp"
2021-04-27 11:47:23 +02:00
android:paddingEnd="8dp"
android:paddingBottom="8dp" />
2020-11-20 15:38:08 +01:00
</LinearLayout>
2021-04-27 11:47:23 +02:00
2020-11-20 15:38:08 +01:00
<LinearLayout
android:id="@+id/library_genres_sector"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
2021-04-27 11:47:23 +02:00
<!-- Genre -->
<!-- Label and button -->
<LinearLayout
android:layout_width="match_parent"
2021-04-27 11:47:23 +02:00
android:layout_height="wrap_content"
android:orientation="horizontal"
2021-04-27 11:47:23 +02:00
android:paddingStart="8dp"
android:paddingTop="16dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp">
<TextView
android:id="@+id/genre_catalogue_sample_text_view_refreshable"
2022-01-13 10:38:46 +01:00
style="@style/TitleLarge"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_genre" />
<TextView
android:id="@+id/genre_catalogue_text_view_clickable"
2022-01-13 10:38:46 +01:00
style="@style/TitleMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_genre_see_all_button" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/genre_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:clipToPadding="false"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="8dp" />
</LinearLayout>
2020-11-20 15:38:08 +01:00
<LinearLayout
android:id="@+id/library_playlist_sector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
<!-- Playlist -->
<!-- Label and button -->
<LinearLayout
android:layout_width="match_parent"
2020-11-20 15:38:08 +01:00
android:layout_height="wrap_content"
android:orientation="horizontal"
2020-11-20 15:38:08 +01:00
android:paddingStart="8dp"
android:paddingTop="16dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp">
<TextView
android:id="@+id/playlist_catalogue_sample_text_view_refreshable"
2022-01-13 10:38:46 +01:00
style="@style/TitleLarge"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_playlist" />
<TextView
android:id="@+id/playlist_catalogue_text_view_clickable"
2022-01-13 10:38:46 +01:00
style="@style/TitleMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 19:00:41 +02:00
android:text="@string/library_title_playlist_see_all_button" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/playlist_recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
2023-07-02 19:55:05 +02:00
android:nestedScrollingEnabled="false"
android:clipToPadding="false"
android:paddingTop="8dp"
android:paddingBottom="8dp" />
2020-11-20 15:38:08 +01:00
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>