2019-10-17 18:57:00 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-18 17:04:41 +02: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-02-11 15:55:45 +01:00
|
|
|
<import type="com.topjohnwu.magisk.core.Config" />
|
|
|
|
|
2019-10-17 18:57:00 +02:00
|
|
|
<variable
|
|
|
|
name="viewModel"
|
2020-01-13 00:43:09 +08:00
|
|
|
type="com.topjohnwu.magisk.ui.superuser.SuperuserViewModel" />
|
2019-10-17 18:57:00 +02:00
|
|
|
|
|
|
|
</data>
|
|
|
|
|
2019-11-25 16:58:57 +01:00
|
|
|
<FrameLayout
|
2019-10-17 18:57:00 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-11-25 16:58:57 +01:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2020-01-06 19:03:36 +01:00
|
|
|
android:id="@+id/superuser_list"
|
|
|
|
adapter="@{viewModel.adapter}"
|
2020-01-23 02:23:42 +08:00
|
|
|
dividerHorizontal="@{@drawable/divider_l1}"
|
|
|
|
dividerVertical="@{@drawable/divider_l1}"
|
2019-11-25 16:58:57 +01:00
|
|
|
goneUnless="@{viewModel.loaded || !viewModel.items.empty}"
|
|
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
|
|
items="@{viewModel.items}"
|
2019-10-17 18:57:00 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-11-25 16:58:57 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
2019-10-31 20:53:37 +01:00
|
|
|
android:orientation="vertical"
|
2019-11-25 16:58:57 +01:00
|
|
|
android:paddingStart="@dimen/l1"
|
|
|
|
android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size + (int) @dimen/l1}"
|
|
|
|
android:paddingBottom="@{viewModel.insets.bottom + (int) @dimen/l2}"
|
2020-08-09 03:30:00 -07:00
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
2020-02-11 19:14:48 +01:00
|
|
|
app:spanCount="2"
|
2019-11-25 16:58:57 +01:00
|
|
|
tools:layout_marginTop="24dp"
|
|
|
|
tools:listitem="@layout/item_policy_md2"
|
|
|
|
tools:paddingTop="@dimen/l1" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
goneUnless="@{viewModel.loading && viewModel.items.empty}"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
2019-10-18 17:04:41 +02:00
|
|
|
|
2019-11-25 16:58:57 +01:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2019-10-20 11:24:45 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-25 16:58:57 +01:00
|
|
|
android:text="@string/safetynet_attest_loading"
|
|
|
|
android:textAppearance="@style/AppearanceFoundation.Title"
|
|
|
|
android:textStyle="bold" />
|
2019-10-31 20:53:37 +01:00
|
|
|
|
2019-11-25 16:58:57 +01:00
|
|
|
<ProgressBar
|
|
|
|
style="@style/WidgetFoundation.ProgressBar.Indeterminate"
|
|
|
|
android:layout_marginTop="@dimen/l1" />
|
2019-10-31 20:53:37 +01:00
|
|
|
|
2019-11-25 16:58:57 +01:00
|
|
|
</LinearLayout>
|
2019-10-17 18:57:00 +02:00
|
|
|
|
2019-11-25 16:58:57 +01:00
|
|
|
</FrameLayout>
|
2019-10-17 18:57:00 +02:00
|
|
|
|
2020-01-13 00:43:09 +08:00
|
|
|
</layout>
|