cloudstream/app/src/main/res/layout/quick_search.xml

103 lines
4.4 KiB
XML
Raw Normal View History

2021-11-20 00:41:37 +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"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2021-11-20 00:41:37 +00:00
android:id="@+id/quick_search_root"
android:background="?attr/primaryGrayBackground"
android:layout_width="match_parent"
2022-01-29 18:57:19 +00:00
android:layout_height="match_parent"
android:orientation="vertical">
2021-11-20 00:41:37 +00:00
<LinearLayout
android:visibility="visible"
android:layout_margin="10dp"
android:layout_width="match_parent"
2022-01-29 18:57:19 +00:00
android:layout_height="wrap_content">
2021-11-20 00:41:37 +00:00
<ImageView
android:id="@+id/quick_search_back"
android:layout_gravity="center"
android:foregroundGravity="center"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_baseline_arrow_back_24"
app:tint="@android:color/white"
android:layout_width="25dp"
android:layout_height="wrap_content">
2022-01-29 18:57:19 +00:00
<requestFocus />
2021-11-20 00:41:37 +00:00
</ImageView>
2022-01-29 18:57:19 +00:00
2021-11-20 00:41:37 +00:00
<FrameLayout
android:layout_marginStart="10dp"
android:background="@drawable/search_background"
android:layout_gravity="center_vertical"
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-11-20 00:41:37 +00:00
<androidx.appcompat.widget.SearchView
android:nextFocusRight="@id/search_filter"
android:nextFocusLeft="@id/search_filter"
2021-12-13 18:41:33 +00:00
android:nextFocusDown="@id/search_autofit_results"
2021-11-20 00:41:37 +00:00
android:imeOptions="actionSearch"
android:inputType="text"
android:id="@+id/quick_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"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
app:iconifiedByDefault="false"
tools:ignore="RtlSymmetry">
<androidx.core.widget.ContentLoadingProgressBar
android:id="@+id/quick_search_loading_bar"
2022-01-29 18:57:19 +00:00
android:layout_width="20dp"
android:layout_height="20dp"
2021-11-20 00:41:37 +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>
</LinearLayout>
2022-01-29 18:57:19 +00:00
2021-11-20 00:41:37 +00:00
<androidx.recyclerview.widget.RecyclerView
android:descendantFocusability="afterDescendants"
android:background="?attr/primaryBlackBackground"
android:id="@+id/quick_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" />
2022-04-30 01:13:50 +00:00
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
android:visibility="gone"
android:nextFocusLeft="@id/nav_rail_view"
android:descendantFocusability="afterDescendants"
android:background="?attr/primaryBlackBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingStart="8dp"
android:paddingTop="5dp"
app:spanCount="3"
android:paddingEnd="8dp"
android:id="@+id/quick_search_autofit_results"
tools:listitem="@layout/search_result_grid"
android:orientation="vertical" />
2021-11-20 00:41:37 +00:00
</LinearLayout>