2019-10-18 17:04:41 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-30 21:58:42 +01:00
|
|
|
<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">
|
2019-10-18 17:04:41 +02:00
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="viewModel"
|
2020-01-13 00:43:09 +08:00
|
|
|
type="com.topjohnwu.magisk.ui.hide.HideViewModel" />
|
2019-10-18 17:04:41 +02:00
|
|
|
|
|
|
|
</data>
|
|
|
|
|
2019-10-31 20:53:37 +01:00
|
|
|
<FrameLayout
|
2019-10-18 17:04:41 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-10-31 20:53:37 +01:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2019-11-12 17:23:27 +01:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/hide_content"
|
2020-08-10 07:05:07 -07:00
|
|
|
dividerVertical="@{@drawable/divider_l_50}"
|
2019-11-12 17:23:27 +01:00
|
|
|
invisibleUnless="@{viewModel.loaded || !viewModel.items.empty}"
|
|
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
|
|
items="@{viewModel.items}"
|
2019-10-31 20:53:37 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-11-12 17:23:27 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingStart="@dimen/l1"
|
2019-11-13 18:29:30 +01:00
|
|
|
android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size + (int) @dimen/l1}"
|
2019-11-12 17:23:27 +01:00
|
|
|
android:paddingEnd="@dimen/l1"
|
2020-06-23 15:59:16 +02:00
|
|
|
android:paddingBottom="@{viewModel.insets.bottom + (int) @dimen/internal_action_bar_size + (int) @dimen/l1}"
|
2019-11-12 17:23:27 +01:00
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
tools:listitem="@layout/item_hide_md2"
|
|
|
|
tools:paddingTop="40dp" />
|
|
|
|
|
2019-11-13 18:29:30 +01:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/hide_filter_toggle"
|
2020-09-24 04:48:38 +08:00
|
|
|
invisibleUnless="@{viewModel.loaded || !viewModel.items.empty}"
|
2019-11-13 18:29:30 +01:00
|
|
|
android:layout_width="wrap_content"
|
2019-11-12 17:23:27 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-11-13 18:29:30 +01:00
|
|
|
android:layout_gravity="bottom|end"
|
2019-11-12 17:23:27 +01:00
|
|
|
android:layout_marginStart="@dimen/l1"
|
|
|
|
android:layout_marginEnd="@dimen/l1"
|
|
|
|
android:layout_marginBottom="@{viewModel.insets.bottom + (int) @dimen/l1}"
|
2019-11-14 19:10:49 +01:00
|
|
|
app:backgroundTint="?colorSurfaceSurfaceVariant"
|
2020-08-27 03:10:25 -07:00
|
|
|
app:srcCompat="@drawable/ic_search_md2"
|
2019-11-13 18:29:30 +01:00
|
|
|
app:tint="?colorPrimary"
|
|
|
|
tools:layout_marginBottom="64dp" />
|
|
|
|
|
|
|
|
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
|
|
|
|
android:id="@+id/hide_filter"
|
2020-09-17 02:27:43 -07:00
|
|
|
style="@style/WidgetFoundation.Card"
|
2019-11-13 18:29:30 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:visibility="invisible"
|
|
|
|
app:cardCornerRadius="0dp">
|
2019-11-02 18:12:22 +01:00
|
|
|
|
2019-11-13 18:29:30 +01:00
|
|
|
<include
|
|
|
|
android:id="@+id/hide_filter_include"
|
|
|
|
layout="@layout/include_hide_filter"
|
|
|
|
viewModel="@{viewModel}"
|
2019-11-02 18:12:22 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-11-13 18:29:30 +01:00
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</com.google.android.material.circularreveal.cardview.CircularRevealCardView>
|
2019-10-31 20:53:37 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
goneUnless="@{viewModel.loading && viewModel.items.empty}"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2020-08-10 07:05:07 -07:00
|
|
|
android:orientation="vertical"
|
|
|
|
tools:visibility="gone">
|
2019-10-31 20:53:37 +01:00
|
|
|
|
2020-08-10 07:05:07 -07:00
|
|
|
<TextView
|
2019-10-31 20:53:37 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-24 04:44:44 +08:00
|
|
|
android:text="@string/loading"
|
2019-11-22 19:29:53 +01:00
|
|
|
android:textAppearance="@style/AppearanceFoundation.Title"
|
2019-10-31 20:53:37 +01:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<ProgressBar
|
2019-11-22 19:29:53 +01:00
|
|
|
style="@style/WidgetFoundation.ProgressBar.Indeterminate"
|
2019-10-31 20:53:37 +01:00
|
|
|
android:layout_marginTop="@dimen/l1" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-09-24 04:48:38 +08:00
|
|
|
<LinearLayout
|
|
|
|
goneUnless="@{viewModel.loadFailed}"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:visibility="gone">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/not_available"
|
|
|
|
android:textAppearance="@style/AppearanceFoundation.Title"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2019-10-31 20:53:37 +01:00
|
|
|
</FrameLayout>
|
2019-10-18 17:04:41 +02:00
|
|
|
|
2020-01-13 00:43:09 +08:00
|
|
|
</layout>
|