2019-10-17 16:57:00 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-30 16:54:43 +00: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 16:57:00 +00:00
|
|
|
|
|
|
|
<data>
|
|
|
|
|
2019-11-05 18:38:02 +00:00
|
|
|
<import type="com.topjohnwu.magisk.R" />
|
|
|
|
|
2019-10-30 16:54:43 +00:00
|
|
|
<import type="com.topjohnwu.magisk.Config" />
|
|
|
|
|
2019-10-17 16:57:00 +00:00
|
|
|
<variable
|
|
|
|
name="viewModel"
|
|
|
|
type="com.topjohnwu.magisk.redesign.module.ModuleViewModel" />
|
|
|
|
|
|
|
|
</data>
|
|
|
|
|
2019-11-08 18:03:43 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/module_remote"
|
|
|
|
adapter="@{viewModel.adapter}"
|
|
|
|
dividerHorizontal="@{R.drawable.divider_l1}"
|
|
|
|
dividerVertical="@{R.drawable.divider_l1}"
|
|
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
|
|
items="@{viewModel.items}"
|
2019-10-17 16:57:00 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-11-05 18:38:02 +00:00
|
|
|
android:clipToPadding="false"
|
2019-11-08 18:03:43 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingStart="@dimen/l1"
|
|
|
|
android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size + (int) @dimen/l1}"
|
|
|
|
android:paddingEnd="0dp"
|
|
|
|
android:paddingBottom="@{viewModel.insets.bottom}"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.StaggeredGridLayoutManager"
|
|
|
|
app:spanCount="2"
|
|
|
|
tools:listitem="@layout/item_module_md2" />
|
2019-10-17 16:57:00 +00:00
|
|
|
|
|
|
|
</layout>
|