2019-11-14 18:56:03 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<layout 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">
|
|
|
|
|
|
|
|
<data>
|
|
|
|
|
2020-02-22 20:09:11 +01:00
|
|
|
<import type="com.topjohnwu.magisk.core.Config" />
|
|
|
|
|
2019-11-14 18:56:03 +01:00
|
|
|
<variable
|
|
|
|
name="viewModel"
|
2020-01-12 17:43:09 +01:00
|
|
|
type="com.topjohnwu.magisk.ui.module.ModuleViewModel" />
|
2019-11-14 18:56:03 +01:00
|
|
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
2020-10-23 06:58:39 +02:00
|
|
|
android:paddingBottom="@dimen/l1"
|
|
|
|
app:fitsSystemWindowsInsets="bottom"
|
2019-11-14 18:56:03 +01:00
|
|
|
tools:layout_gravity="bottom"
|
|
|
|
tools:paddingBottom="64dp">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/module_filter_list"
|
|
|
|
itemBinding="@{viewModel.itemSearchBinding}"
|
|
|
|
items="@{viewModel.itemsSearch}"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginBottom="@dimen/l1"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
2020-10-23 06:58:39 +02:00
|
|
|
android:paddingTop="@dimen/internal_action_bar_size"
|
2020-12-04 11:02:05 +01:00
|
|
|
app:fitsSystemWindowsInsets="top"
|
2020-07-04 12:28:10 +02:00
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
2019-11-14 18:56:03 +01:00
|
|
|
app:layout_constrainedHeight="true"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/module_filter_title_search"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:reverseLayout="false"
|
|
|
|
app:spanCount="2"
|
|
|
|
tools:listitem="@layout/item_repo_md2" />
|
|
|
|
|
2020-09-12 12:17:21 +02:00
|
|
|
<ImageView
|
2019-11-14 18:56:03 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/l_50"
|
2020-09-12 12:17:21 +02:00
|
|
|
app:srcCompat="@drawable/bg_shadow"
|
|
|
|
app:tint="?colorSurfaceVariant"
|
2019-11-14 18:56:03 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/module_filter_list" />
|
|
|
|
|
2020-08-19 11:45:14 +02:00
|
|
|
<TextView
|
2019-11-14 18:56:03 +01:00
|
|
|
android:id="@+id/module_filter_title_search"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/l1"
|
|
|
|
android:layout_marginEnd="@dimen/l1"
|
|
|
|
android:layout_marginBottom="@dimen/l1"
|
|
|
|
android:text="@string/hide_search"
|
|
|
|
android:textAllCaps="true"
|
2019-11-22 19:29:53 +01:00
|
|
|
android:textAppearance="@style/AppearanceFoundation.Caption"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:textColor="?colorPrimary"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/module_filter_search" />
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/module_filter_search"
|
2019-11-22 19:29:53 +01:00
|
|
|
style="@style/WidgetFoundation.Card"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/l1"
|
|
|
|
android:layout_marginEnd="@dimen/l1"
|
|
|
|
android:layout_marginBottom="@dimen/l_50"
|
|
|
|
app:cardCornerRadius="18dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/module_filter_done"
|
|
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
|
2020-08-19 11:45:14 +02:00
|
|
|
<ImageView
|
2019-11-22 19:29:53 +01:00
|
|
|
style="@style/WidgetFoundation.Icon"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_gravity="center_vertical|start"
|
|
|
|
android:padding="6dp"
|
|
|
|
app:srcCompat="@drawable/ic_search_md2"
|
|
|
|
app:tint="?colorDisabled" />
|
|
|
|
|
2020-08-19 11:45:14 +02:00
|
|
|
<EditText
|
2020-09-21 12:27:29 +02:00
|
|
|
android:id="@+id/module_filter_search_field"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="48dp"
|
|
|
|
android:background="@null"
|
|
|
|
android:hint="@string/hide_filter_hint"
|
|
|
|
android:inputType="textUri"
|
|
|
|
android:minHeight="36dp"
|
2020-09-21 12:27:29 +02:00
|
|
|
android:nextFocusRight="@id/module_filter_done"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:paddingStart="0dp"
|
|
|
|
android:paddingEnd="@dimen/l1"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@={viewModel.query}"
|
2019-11-22 19:29:53 +01:00
|
|
|
android:textAppearance="@style/AppearanceFoundation.Body"
|
2019-11-19 18:53:50 +01:00
|
|
|
android:textColor="@color/color_text_transient"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:textColorHint="?colorOnSurfaceVariant" />
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/module_filter_done"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/l1"
|
2020-09-21 12:27:29 +02:00
|
|
|
android:nextFocusLeft="@id/module_filter_search_field"
|
2019-11-14 18:56:03 +01:00
|
|
|
app:backgroundTint="?colorPrimary"
|
|
|
|
app:elevation="0dp"
|
|
|
|
app:fabSize="mini"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/module_filter_search"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/module_filter_search"
|
2020-02-22 20:09:11 +01:00
|
|
|
app:srcCompat="@drawable/ic_check_md2"
|
|
|
|
app:tint="?colorOnPrimary" />
|
2019-11-14 18:56:03 +01:00
|
|
|
|
|
|
|
<ProgressBar
|
2019-11-22 19:29:53 +01:00
|
|
|
style="@style/WidgetFoundation.ProgressBar.Indeterminate.Circular"
|
2019-11-14 18:56:03 +01:00
|
|
|
goneUnless="@{viewModel.searchLoading}"
|
|
|
|
android:layout_width="56dp"
|
|
|
|
android:layout_height="56dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/module_filter_done"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/module_filter_done"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/module_filter_done"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/module_filter_done" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</layout>
|