2021-05-12 21:51:02 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
|
|
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:id="@+id/searchRoot"
|
|
|
|
tools:context=".ui.search.SearchFragment"
|
|
|
|
android:orientation="vertical"
|
2021-07-19 13:19:47 +00:00
|
|
|
android:layout_marginTop="@dimen/navbarHeight">
|
2021-05-18 22:13:16 +00:00
|
|
|
<FrameLayout android:visibility="visible"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="@drawable/search_background"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-05-12 21:51:02 +00:00
|
|
|
>
|
2021-06-26 19:32:50 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_marginEnd="30dp"
|
|
|
|
android:layout_height="30dp">
|
2021-05-12 21:51:02 +00:00
|
|
|
<androidx.appcompat.widget.SearchView
|
|
|
|
android:id="@+id/main_search"
|
|
|
|
app:queryBackground="@color/transparent"
|
|
|
|
app:searchIcon="@drawable/search_icon"
|
|
|
|
android:paddingStart="-10dp"
|
|
|
|
android:iconifiedByDefault="false"
|
|
|
|
app:queryHint="@string/search_hint"
|
|
|
|
android:layout_width="match_parent"
|
2021-05-18 22:13:16 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
2021-05-12 21:51:02 +00:00
|
|
|
app:iconifiedByDefault="false"
|
|
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
|
|
android:id="@+id/search_loading_bar"
|
|
|
|
android:layout_width="20dp" android:layout_height="20dp"
|
|
|
|
android:layout_marginStart="-35dp"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"
|
|
|
|
android:foregroundTint="@color/white"
|
|
|
|
android:progressTint="@color/white"
|
|
|
|
android:layout_gravity="center">
|
|
|
|
|
|
|
|
</androidx.core.widget.ContentLoadingProgressBar>
|
|
|
|
<!--app:queryHint="@string/search_hint"
|
|
|
|
android:background="@color/grayBackground" @color/itemBackground
|
|
|
|
app:searchHintIcon="@drawable/search_white"
|
|
|
|
-->
|
|
|
|
</androidx.appcompat.widget.SearchView>
|
|
|
|
</FrameLayout>
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/search_filter"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:src="@drawable/ic_baseline_tune_24"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
2021-06-06 18:06:01 +00:00
|
|
|
app:tint="?attr/textColor"
|
2021-09-02 13:19:50 +00:00
|
|
|
android:contentDescription="@string/change_providers_des">
|
2021-05-12 21:51:02 +00:00
|
|
|
</ImageView>
|
|
|
|
</FrameLayout>
|
2021-05-18 22:13:16 +00:00
|
|
|
|
2021-05-12 21:51:02 +00:00
|
|
|
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
app:spanCount="3"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:id="@+id/cardSpace"
|
2021-07-29 01:46:10 +00:00
|
|
|
tools:listitem="@layout/search_result_grid"
|
2021-05-12 21:51:02 +00:00
|
|
|
android:orientation="vertical"
|
2021-08-12 00:04:58 +00:00
|
|
|
/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/search_master_recycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:listitem="@layout/homepage_parent"
|
|
|
|
/>
|
2021-05-12 21:51:02 +00:00
|
|
|
</LinearLayout>
|