43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?themePrimary"
|
|
tools:context=".ui.fragments.SearchFragment">
|
|
|
|
<SearchView
|
|
android:id="@+id/search_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:background="?themeSecondary"
|
|
android:elevation="8dp"
|
|
android:iconifiedByDefault="false"
|
|
android:paddingBottom="5dp"
|
|
android:queryHint="@string/search_hint"
|
|
android:searchIcon="@drawable/ic_baseline_search_24"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
</SearchView>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_media_search"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:padding="3dp"
|
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/search_text"
|
|
app:spanCount="2"
|
|
tools:listitem="@layout/item_media">
|
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |