mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-01 22:15:40 +00:00
56 lines
2.2 KiB
XML
56 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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.module.ModuleViewModel" />
|
|
|
|
</data>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/repos_refresh_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
app:onRefreshListener="@{() -> viewModel.refresh(true)}"
|
|
app:refreshing="@{viewModel.loading}">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/repos_content"
|
|
dividerColor="@{@android:color/transparent}"
|
|
dividerSize="@{@dimen/margin_generic}"
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
items="@{viewModel.itemsRemote}"
|
|
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_repo" />
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/repos_status_text"
|
|
gone="@{!(viewModel.loaded && viewModel.itemsRemote.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_modules_found"
|
|
android:textSize="20sp"
|
|
android:textStyle="italic" />
|
|
</FrameLayout>
|
|
|
|
</layout> |