mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-26 11:35:25 +00:00
bcd1064e94
Fixed theme issues along the way
54 lines
1.8 KiB
XML
54 lines
1.8 KiB
XML
<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>
|
|
|
|
<variable
|
|
name="viewModel"
|
|
type="com.topjohnwu.magisk.ui.superuser.SuperuserViewModel" />
|
|
|
|
</data>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
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>
|
|
|