mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-29 21:15:29 +00:00
e9fc40d285
* disgusting (:
40 lines
1.5 KiB
XML
40 lines
1.5 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>
|
|
|
|
<import type="com.topjohnwu.magisk.core.Config" />
|
|
|
|
<variable
|
|
name="viewModel"
|
|
type="com.topjohnwu.magisk.ui.settings.SettingsViewModel" />
|
|
|
|
</data>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
adapter="@{viewModel.adapter}"
|
|
dividerHorizontal="@{@drawable/divider_l_50}"
|
|
dividerVertical="@{@drawable/divider_l_50}"
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
items="@{viewModel.items}"
|
|
spanCount="@{Config.listSpanCount}"
|
|
android:id="@+id/settings_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:focusableInTouchMode="false"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:paddingStart="@dimen/l1"
|
|
android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size}"
|
|
android:paddingEnd="@dimen/l_50"
|
|
android:paddingBottom="@{viewModel.insets.bottom + (int) @dimen/l1}"
|
|
app:layoutManager="androidx.recyclerview.widget.StaggeredGridLayoutManager"
|
|
app:spanCount="1"
|
|
tools:layout_marginTop="24dp"
|
|
tools:listitem="@layout/item_settings_toggle"
|
|
tools:paddingTop="@dimen/l1" />
|
|
|
|
</layout>
|