2020-11-20 15:38:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-06-24 11:15:04 +02:00
|
|
|
<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"
|
|
|
|
|
android:layout_width="match_parent"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="match_parent">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-14 14:06:35 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:id="@+id/search_result_nested_scroll_view"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
2023-06-24 11:15:04 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_behavior="@string/searchbar_scrolling_view_behavior">
|
2020-11-21 13:54:49 +01:00
|
|
|
|
2021-04-20 11:53:51 +02:00
|
|
|
<!-- Search result -->
|
2020-11-21 13:54:49 +01:00
|
|
|
<LinearLayout
|
2021-04-20 11:53:51 +02:00
|
|
|
android:id="@+id/search_result_layout"
|
2020-11-21 13:54:49 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:orientation="vertical"
|
2023-06-24 11:15:04 +02:00
|
|
|
android:paddingTop="64dp"
|
2021-04-22 18:05:20 +02:00
|
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
2020-11-21 13:54:49 +01:00
|
|
|
|
2021-09-13 17:24:24 +02:00
|
|
|
<!-- Artist -->
|
2020-11-21 13:54:49 +01:00
|
|
|
<LinearLayout
|
2021-09-13 17:24:24 +02:00
|
|
|
android:id="@+id/search_artist_sector"
|
2020-11-21 13:54:49 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:orientation="vertical"
|
2021-04-22 18:05:20 +02:00
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
android:visibility="gone">
|
2020-11-21 13:54:49 +01:00
|
|
|
|
2021-04-20 11:53:51 +02:00
|
|
|
<TextView
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleLarge"
|
2021-04-14 14:06:35 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-21 13:54:49 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="20dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
2021-09-13 17:24:24 +02:00
|
|
|
android:text="@string/search_title_artist" />
|
2020-11-21 13:54:49 +01:00
|
|
|
|
2021-04-14 14:06:35 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-09-13 17:24:24 +02:00
|
|
|
android:id="@+id/search_result_artist_recycler_view"
|
2021-04-14 14:06:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
2021-04-14 14:06:35 +02:00
|
|
|
android:clipToPadding="false"
|
2021-09-13 17:24:24 +02:00
|
|
|
android:paddingStart="16dp"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingTop="8dp"
|
2021-09-13 17:24:24 +02:00
|
|
|
android:paddingEnd="8dp"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingBottom="8dp" />
|
2020-11-21 13:54:49 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-04-20 11:53:51 +02:00
|
|
|
<!-- Album -->
|
2020-11-22 19:11:38 +01:00
|
|
|
<LinearLayout
|
2021-04-20 11:53:51 +02:00
|
|
|
android:id="@+id/search_album_sector"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-11-21 13:54:49 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-12-08 11:12:44 +01:00
|
|
|
android:orientation="vertical"
|
2021-04-22 18:05:20 +02:00
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
android:visibility="gone">
|
2020-11-21 13:54:49 +01:00
|
|
|
|
2020-11-24 10:52:00 +01:00
|
|
|
<TextView
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleLarge"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-24 10:52:00 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="16dp"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingTop="20dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/search_title_album" />
|
2020-11-24 10:52:00 +01:00
|
|
|
|
2020-11-22 19:11:38 +01:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-04-20 11:53:51 +02:00
|
|
|
android:id="@+id/search_result_album_recycler_view"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:clipToPadding="false"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingStart="16dp"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:paddingTop="8dp"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-09-13 17:24:24 +02:00
|
|
|
<!-- Songs -->
|
2021-04-20 11:53:51 +02:00
|
|
|
<LinearLayout
|
2021-09-13 17:24:24 +02:00
|
|
|
android:id="@+id/search_song_sector"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2021-04-22 18:05:20 +02:00
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
android:visibility="gone">
|
2020-11-22 19:11:38 +01:00
|
|
|
|
|
|
|
|
<TextView
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleLarge"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="16dp"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingTop="20dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
2021-09-13 17:24:24 +02:00
|
|
|
android:text="@string/search_title_song" />
|
2020-11-22 19:11:38 +01:00
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-09-13 17:24:24 +02:00
|
|
|
android:id="@+id/search_result_tracks_recycler_view"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp"
|
2021-04-20 11:53:51 +02:00
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
2021-04-14 14:06:35 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
2023-06-24 11:15:04 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.search.SearchBar
|
|
|
|
|
android:id="@+id/search_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/search_hint">
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.search.SearchBar>
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.search.SearchView
|
|
|
|
|
android:id="@+id/search_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:hint="@string/search_hint"
|
|
|
|
|
app:layout_anchor="@id/search_bar">
|
|
|
|
|
|
|
|
|
|
<!-- Content goes here (ScrollView, RecyclerView, etc.). -->
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:scrollbars="none"
|
|
|
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/search_view_suggestion_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"/>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
</com.google.android.material.search.SearchView>
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|