2019-04-17 16:27:03 +00:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-01-25 17:13:23 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-04-17 16:27:03 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
2017-01-25 17:13:23 +00:00
|
|
|
|
2019-04-17 16:27:03 +00:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="viewModel"
|
|
|
|
type="com.topjohnwu.magisk.ui.superuser.SuperuserViewModel" />
|
|
|
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<FrameLayout
|
2017-01-25 17:13:23 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-04-17 16:27:03 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/superuser_content"
|
|
|
|
dividerColor="@{@android:color/transparent}"
|
|
|
|
dividerSize="@{@dimen/margin_generic}"
|
|
|
|
gone="@{!viewModel.loaded}"
|
|
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
|
|
items="@{viewModel.items}"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="@dimen/margin_generic"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
tools:listitem="@layout/item_policy" />
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
style="@style/Widget.Progress"
|
|
|
|
gone="@{!viewModel.loading}"
|
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/superuser_empty"
|
|
|
|
gone="@{!viewModel.loaded || viewModel.items.size > 0}"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/no_apps_found"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:textStyle="italic" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</layout>
|
2017-01-25 17:13:23 +00:00
|
|
|
|