AquaStream/app/src/main/res/layout/fragment_search.xml

185 lines
7.9 KiB
XML
Raw Normal View History

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"
2021-05-12 21:51:02 +00:00
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-10-31 01:17:56 +00:00
android:background="?attr/primaryGrayBackground"
2021-11-27 18:49:51 +00:00
android:layout_marginTop="@dimen/navbar_height">
2022-01-29 18:57:19 +00:00
2021-10-03 19:15:56 +00:00
<FrameLayout
android:visibility="visible"
android:layout_margin="10dp"
android:background="@drawable/search_background"
android:layout_width="match_parent"
2022-04-25 18:00:25 +00:00
android:layout_height="40dp">
2022-01-29 18:57:19 +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">
2022-01-29 18:57:19 +00:00
2021-05-12 21:51:02 +00:00
<androidx.appcompat.widget.SearchView
2021-11-27 18:49:51 +00:00
android:nextFocusUp="@id/nav_rail_view"
2021-10-09 21:59:37 +00:00
android:nextFocusRight="@id/search_filter"
2021-11-27 18:49:51 +00:00
android:nextFocusLeft="@id/nav_rail_view"
2021-12-13 18:41:33 +00:00
android:nextFocusDown="@id/search_autofit_results"
2021-10-09 21:59:37 +00:00
2021-10-30 18:14:12 +00:00
android:imeOptions="actionSearch"
android:inputType="text"
2021-05-12 21:51:02 +00:00
android:id="@+id/main_search"
app:queryBackground="@color/transparent"
2021-10-31 01:17:56 +00:00
2021-05-12 21:51:02 +00:00
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">
2022-01-29 18:57:19 +00:00
<requestFocus />
2021-10-30 18:14:12 +00:00
2021-05-12 21:51:02 +00:00
<androidx.core.widget.ContentLoadingProgressBar
android:id="@+id/search_loading_bar"
2022-01-29 18:57:19 +00:00
android:layout_width="20dp"
android:layout_height="20dp"
2021-05-12 21:51:02 +00:00
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>
2022-01-29 18:57:19 +00:00
2021-05-12 21:51:02 +00:00
<ImageView
2021-11-27 18:49:51 +00:00
android:nextFocusUp="@id/nav_rail_view"
2021-10-09 21:59:37 +00:00
android:nextFocusRight="@id/main_search"
android:nextFocusLeft="@id/main_search"
2021-12-13 18:41:33 +00:00
android:nextFocusDown="@id/search_autofit_results"
2021-10-09 21:59:37 +00:00
2021-05-12 21:51:02 +00:00
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"
2022-01-29 18:57:19 +00:00
android:contentDescription="@string/change_providers_img_des" />
2021-05-12 21:51:02 +00:00
</FrameLayout>
<HorizontalScrollView
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:fadingEdge="horizontal"
android:requiresFadingEdge="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.google.android.material.button.MaterialButton
android:nextFocusRight="@id/search_select_tv_series"
android:id="@+id/search_select_movies"
android:text="@string/movies"
style="@style/RoundedSelectableButton" />
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/search_select_movies"
android:nextFocusRight="@id/search_select_anime"
android:id="@+id/search_select_tv_series"
android:text="@string/tv_series"
style="@style/RoundedSelectableButton" />
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/search_select_tv_series"
2022-03-21 11:07:36 +00:00
android:nextFocusRight="@id/search_select_asian"
android:id="@+id/search_select_anime"
android:text="@string/anime"
style="@style/RoundedSelectableButton" />
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/search_select_anime"
2022-03-21 11:07:36 +00:00
android:nextFocusRight="@id/search_select_cartoons"
android:id="@+id/search_select_asian"
android:text="@string/asian_drama"
style="@style/RoundedSelectableButton" />
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/search_select_asian"
android:nextFocusRight="@id/search_select_documentaries"
android:id="@+id/search_select_cartoons"
android:text="@string/cartoons"
style="@style/RoundedSelectableButton" />
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/search_select_cartoons"
android:id="@+id/search_select_documentaries"
android:text="@string/documentaries"
style="@style/RoundedSelectableButton" />
</LinearLayout>
</HorizontalScrollView>
2021-05-18 22:13:16 +00:00
2021-05-12 21:51:02 +00:00
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
android:visibility="gone"
2021-11-27 18:49:51 +00:00
android:nextFocusLeft="@id/nav_rail_view"
2021-10-09 21:59:37 +00:00
android:descendantFocusability="afterDescendants"
2021-10-03 19:15:56 +00:00
android:background="?attr/primaryBlackBackground"
2021-05-12 21:51:02 +00:00
android:layout_width="match_parent"
2021-10-03 19:15:56 +00:00
android:layout_height="match_parent"
2021-05-12 21:51:02 +00:00
android:clipToPadding="false"
android:paddingStart="8dp"
android:paddingTop="5dp"
app:spanCount="3"
android:paddingEnd="8dp"
2021-12-13 18:41:33 +00:00
android:id="@+id/search_autofit_results"
2021-07-29 01:46:10 +00:00
tools:listitem="@layout/search_result_grid"
2022-01-29 18:57:19 +00:00
android:orientation="vertical" />
2021-08-12 00:04:58 +00:00
<androidx.recyclerview.widget.RecyclerView
android:visibility="gone"
2021-11-27 18:49:51 +00:00
android:nextFocusLeft="@id/nav_rail_view"
2021-10-09 21:59:37 +00:00
android:descendantFocusability="afterDescendants"
2021-10-03 19:15:56 +00:00
android:background="?attr/primaryBlackBackground"
2021-08-12 00:04:58 +00:00
android:id="@+id/search_master_recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-01-29 18:57:19 +00:00
tools:listitem="@layout/homepage_parent" />
<androidx.recyclerview.widget.RecyclerView
android:visibility="visible"
android:nextFocusLeft="@id/nav_rail_view"
android:descendantFocusability="afterDescendants"
android:background="?attr/primaryBlackBackground"
android:id="@+id/search_history_recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/search_history_item" />
2021-05-12 21:51:02 +00:00
</LinearLayout>