2016-09-11 18:36:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-04-20 21:44:08 +00:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-02-12 21:58:05 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-04-20 21:44:08 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
2016-09-11 18:36:58 +00:00
|
|
|
|
2019-04-20 21:44:08 +00:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="viewModel"
|
|
|
|
type="com.topjohnwu.magisk.ui.module.ModuleViewModel" />
|
|
|
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<FrameLayout
|
2016-09-11 18:36:58 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2016-10-17 08:07:47 +00:00
|
|
|
android:orientation="vertical">
|
2016-09-11 18:36:58 +00:00
|
|
|
|
2019-04-20 21:44:08 +00:00
|
|
|
<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()}"
|
|
|
|
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)}"
|
2016-10-17 08:07:47 +00:00
|
|
|
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"
|
2019-02-02 09:15:30 +00:00
|
|
|
android:textStyle="italic" />
|
2019-04-20 21:44:08 +00:00
|
|
|
</FrameLayout>
|
2016-10-17 08:07:47 +00:00
|
|
|
|
2019-04-20 21:44:08 +00:00
|
|
|
</layout>
|