2019-10-17 18:57:00 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-30 17:54:43 +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-17 18:57:00 +02:00
|
|
|
|
|
|
|
<data>
|
|
|
|
|
2020-01-13 22:01:46 +08:00
|
|
|
<import type="com.topjohnwu.magisk.core.Config" />
|
2019-10-30 17:54:43 +01:00
|
|
|
|
2019-10-17 18:57:00 +02:00
|
|
|
<variable
|
|
|
|
name="viewModel"
|
2020-01-13 00:43:09 +08:00
|
|
|
type="com.topjohnwu.magisk.ui.module.ModuleViewModel" />
|
2019-10-17 18:57:00 +02:00
|
|
|
|
|
|
|
</data>
|
|
|
|
|
2019-11-14 18:56:03 +01:00
|
|
|
<FrameLayout
|
2019-10-17 18:57:00 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2020-01-04 16:07:53 +01:00
|
|
|
android:id="@+id/module_list"
|
2022-01-17 15:08:54 +08:00
|
|
|
gone="@{viewModel.loading}"
|
2022-06-02 20:55:19 -07:00
|
|
|
app:items="@{viewModel.items}"
|
|
|
|
app:extraBindings="@{viewModel.extraBindings}"
|
2019-11-14 18:56:03 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
2020-10-23 12:58:39 +08:00
|
|
|
android:paddingTop="@dimen/internal_action_bar_size"
|
2022-01-17 15:08:54 +08:00
|
|
|
android:paddingBottom="@dimen/internal_action_bar_size"
|
2020-10-23 12:58:39 +08:00
|
|
|
app:fitsSystemWindowsInsets="top|bottom"
|
2020-04-11 17:58:10 +02:00
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
2019-11-14 18:56:03 +01:00
|
|
|
tools:listitem="@layout/item_module_md2" />
|
|
|
|
|
2019-11-15 22:16:59 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2020-08-19 02:45:14 -07:00
|
|
|
<TextView
|
2022-05-29 16:40:20 +08:00
|
|
|
goneUnless="@{viewModel.loading}"
|
2019-11-15 22:16:59 +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-11-15 22:16:59 +01:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<ProgressBar
|
2019-11-22 19:29:53 +01:00
|
|
|
style="@style/WidgetFoundation.ProgressBar.Indeterminate"
|
2022-05-29 16:40:20 +08:00
|
|
|
goneUnless="@{viewModel.loading}"
|
2019-11-15 22:16:59 +01:00
|
|
|
android:layout_marginTop="@dimen/l1" />
|
|
|
|
|
2022-05-29 16:40:20 +08:00
|
|
|
<TextView
|
|
|
|
gone="@{viewModel.loading || viewModel.items.size() != 1 }"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/module_empty"
|
|
|
|
android:textAppearance="@style/AppearanceFoundation.Title"
|
|
|
|
android:textStyle="bold" />
|
2019-11-15 22:16:59 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2019-11-14 18:56:03 +01:00
|
|
|
</FrameLayout>
|
|
|
|
|
2019-10-17 18:57:00 +02:00
|
|
|
|
2020-01-13 00:43:09 +08:00
|
|
|
</layout>
|