2021-05-12 21:51:02 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-01-29 18:57:19 +00:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-07-19 20:24:55 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/searchRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginTop="@dimen/navbar_height"
|
|
|
|
android:background="?attr/primaryGrayBackground"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:context=".ui.search.SearchFragment">
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
<LinearLayout
|
2022-07-19 20:24:55 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-08-04 03:37:41 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingBottom="10dp">
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-06-26 19:32:50 +00:00
|
|
|
<FrameLayout
|
2022-07-19 20:24:55 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="@drawable/search_background"
|
|
|
|
android:visibility="visible">
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
<FrameLayout
|
2022-07-19 20:24:55 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_height="30dp"
|
2022-07-19 20:24:55 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_marginEnd="30dp">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SearchView
|
|
|
|
android:id="@+id/main_search"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
|
|
|
android:iconifiedByDefault="false"
|
|
|
|
android:imeOptions="actionSearch"
|
|
|
|
|
|
|
|
android:inputType="text"
|
|
|
|
android:nextFocusLeft="@id/nav_rail_view"
|
|
|
|
|
|
|
|
android:nextFocusRight="@id/search_filter"
|
|
|
|
android:nextFocusUp="@id/nav_rail_view"
|
|
|
|
android:nextFocusDown="@id/search_autofit_results"
|
|
|
|
android:paddingStart="-10dp"
|
|
|
|
app:iconifiedByDefault="false"
|
|
|
|
app:queryBackground="@color/transparent"
|
|
|
|
app:queryHint="@string/search_hint"
|
|
|
|
app:searchIcon="@drawable/search_icon"
|
|
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
|
|
|
|
<requestFocus />
|
|
|
|
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
|
|
android:id="@+id/search_loading_bar"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="-35dp"
|
|
|
|
android:foregroundTint="@color/white"
|
|
|
|
android:progressTint="@color/white">
|
|
|
|
|
|
|
|
</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:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/change_providers_img_des"
|
|
|
|
android:nextFocusLeft="@id/main_search"
|
|
|
|
android:nextFocusRight="@id/main_search"
|
2022-07-19 20:24:55 +00:00
|
|
|
android:nextFocusUp="@id/nav_rail_view"
|
|
|
|
android:nextFocusDown="@id/search_autofit_results"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:src="@drawable/ic_baseline_tune_24"
|
|
|
|
app:tint="?attr/textColor" />
|
2021-05-12 21:51:02 +00:00
|
|
|
</FrameLayout>
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2023-08-04 03:37:41 +00:00
|
|
|
<include
|
|
|
|
android:id="@+id/tvtypes_chips_scroll"
|
|
|
|
layout="@layout/tvtypes_chips_scroll" />
|
2022-12-28 11:51:55 +00:00
|
|
|
</LinearLayout>
|
2022-01-29 21:25:12 +00:00
|
|
|
|
2021-05-18 22:13:16 +00:00
|
|
|
|
2021-05-12 21:51:02 +00:00
|
|
|
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
|
2022-07-19 20:24:55 +00:00
|
|
|
android:id="@+id/search_autofit_results"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-10-09 21:59:37 +00:00
|
|
|
|
2022-07-19 20:24:55 +00:00
|
|
|
android:background="?attr/primaryBlackBackground"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:descendantFocusability="afterDescendants"
|
|
|
|
android:nextFocusLeft="@id/nav_rail_view"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:spanCount="3"
|
|
|
|
tools:listitem="@layout/search_result_grid" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-12 00:04:58 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2022-07-19 20:24:55 +00:00
|
|
|
android:id="@+id/search_master_recycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-10-09 21:59:37 +00:00
|
|
|
|
2022-07-19 20:24:55 +00:00
|
|
|
android:background="?attr/primaryBlackBackground"
|
|
|
|
android:descendantFocusability="afterDescendants"
|
2023-08-04 03:37:41 +00:00
|
|
|
|
2022-07-19 20:24:55 +00:00
|
|
|
android:nextFocusLeft="@id/nav_rail_view"
|
2023-08-04 03:37:41 +00:00
|
|
|
android:nextFocusUp="@id/tvtypes_chips"
|
|
|
|
android:nextFocusDown="@id/search_clear_call_history"
|
2022-07-19 20:24:55 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:listitem="@layout/homepage_parent" />
|
2022-12-28 11:51:55 +00:00
|
|
|
|
2022-11-05 00:27:35 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/search_history_holder"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2022-03-29 18:34:00 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/search_history_recycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
|
|
android:background="?attr/primaryBlackBackground"
|
|
|
|
android:descendantFocusability="afterDescendants"
|
|
|
|
android:nextFocusLeft="@id/nav_rail_view"
|
2023-08-04 03:37:41 +00:00
|
|
|
android:nextFocusUp="@id/tvtypes_chips"
|
|
|
|
android:nextFocusDown="@id/search_clear_call_history"
|
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
android:paddingBottom="50dp"
|
2023-08-04 03:37:41 +00:00
|
|
|
android:visibility="visible"
|
2022-12-28 11:51:55 +00:00
|
|
|
tools:listitem="@layout/search_history_item" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/search_clear_call_history"
|
|
|
|
style="@style/BlackButton"
|
2023-08-04 03:37:41 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="50dp"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layout_margin="0dp"
|
2023-08-04 03:37:41 +00:00
|
|
|
android:nextFocusUp="@id/search_history_recycler"
|
|
|
|
android:padding="0dp"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:text="@string/clear_history"
|
2023-08-04 03:37:41 +00:00
|
|
|
app:cornerRadius="0dp"
|
|
|
|
app:icon="@drawable/delete_all" />
|
2022-11-05 00:27:35 +00:00
|
|
|
</FrameLayout>
|
2021-05-12 21:51:02 +00:00
|
|
|
</LinearLayout>
|