mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
153 lines
No EOL
6.6 KiB
XML
153 lines
No EOL
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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.paulrybitskyi.persistentsearchview.PersistentSearchView
|
|
android:id="@+id/persistentSearchView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="12dp"
|
|
app:areSuggestionsDisabled="false"
|
|
app:cardBackgroundColor="?attr/colorSurface"
|
|
app:cardCornerRadius="0dp"
|
|
app:cardElevation="0dp"
|
|
app:clearInputButtonDrawable="@drawable/ic_close"
|
|
app:dividerColor="@color/dividerColor"
|
|
app:isClearInputButtonEnabled="true"
|
|
app:isDismissableOnTouchOutside="true"
|
|
app:isProgressBarEnabled="true"
|
|
app:isVoiceInputButtonEnabled="false"
|
|
app:leftButtonDrawable="@drawable/ic_search"
|
|
app:progressBarColor="?attr/colorOnSurface"
|
|
app:queryInputBarIconColor="@color/searchPlaceholderColor"
|
|
app:queryInputCursorColor="?attr/colorOnSurface"
|
|
app:queryInputHint="@string/search_hint"
|
|
app:queryInputHintColor="@color/searchPlaceholderColor"
|
|
app:queryInputTextColor="@color/searchPlaceholderColor"
|
|
app:shouldDimBehind="false"
|
|
app:suggestionRecentSearchIconColor="@color/searchColor"
|
|
app:suggestionSearchSuggestionIconColor="@color/searchColor"
|
|
app:suggestionSelectedTextColor="?attr/colorPrimary"
|
|
app:suggestionTextColor="@color/searchColor"
|
|
app:suggestionIconColor="@color/searchColor" />
|
|
|
|
<View
|
|
android:id="@+id/search_bar_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0.75dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_below="@+id/persistentSearchView"
|
|
android:background="?attr/colorSurfaceVariant" />
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/search_result_nested_scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/search_bar_divider">
|
|
|
|
<!-- Search result -->
|
|
<LinearLayout
|
|
android:id="@+id/search_result_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
<!-- Artist -->
|
|
<LinearLayout
|
|
android:id="@+id/search_artist_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
style="@style/TitleLarge"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="20dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/search_title_artist" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/search_result_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"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Album -->
|
|
<LinearLayout
|
|
android:id="@+id/search_album_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
style="@style/TitleLarge"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="20dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/search_title_album" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/search_result_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"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Songs -->
|
|
<LinearLayout
|
|
android:id="@+id/search_song_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
style="@style/TitleLarge"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="20dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/search_title_song" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/search_result_tracks_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:clipToPadding="false"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</RelativeLayout> |