2019-10-17 16:57:00 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-17 17:26:35 +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-27 18:47:20 +00:00
|
|
|
<import type="com.topjohnwu.magisk.R" />
|
|
|
|
|
2019-10-17 16:57:00 +00:00
|
|
|
<variable
|
|
|
|
name="viewModel"
|
|
|
|
type="com.topjohnwu.magisk.redesign.settings.SettingsViewModel" />
|
|
|
|
|
|
|
|
</data>
|
|
|
|
|
2019-11-27 18:47:20 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
adapter="@{viewModel.adapter}"
|
|
|
|
dividerHorizontal="@{R.drawable.divider_l_50}"
|
|
|
|
dividerVertical="@{R.drawable.divider_l_50}"
|
|
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
|
|
items="@{viewModel.items}"
|
2020-01-04 15:07:53 +00:00
|
|
|
android:id="@+id/settings_list"
|
2019-10-17 16:57:00 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-11-27 18:47:20 +00:00
|
|
|
android:focusableInTouchMode="false"
|
2019-10-17 17:26:35 +00:00
|
|
|
android:clipToPadding="false"
|
2019-11-27 18:47:20 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingStart="@dimen/l1"
|
2019-10-22 16:08:57 +00:00
|
|
|
android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size}"
|
2019-11-27 18:47:20 +00:00
|
|
|
android:paddingEnd="@dimen/l_50"
|
|
|
|
android:paddingBottom="@{viewModel.insets.bottom + (int) @dimen/l1}"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.StaggeredGridLayoutManager"
|
|
|
|
app:spanCount="2"
|
2019-10-20 15:28:18 +00:00
|
|
|
tools:layout_marginTop="24dp"
|
2019-11-27 18:47:20 +00:00
|
|
|
tools:listitem="@layout/item_settings_toggle"
|
|
|
|
tools:paddingTop="@dimen/l1" />
|
2019-10-17 16:57:00 +00:00
|
|
|
|
|
|
|
</layout>
|