mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-13 05:13:37 +00:00
Don't direct reference R id
This commit is contained in:
parent
3a10597aed
commit
36513c2301
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.R" />
|
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="viewModel"
|
name="viewModel"
|
||||||
type="com.topjohnwu.magisk.ui.hide.HideViewModel" />
|
type="com.topjohnwu.magisk.ui.hide.HideViewModel" />
|
||||||
@ -19,7 +17,7 @@
|
|||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/hide_content"
|
android:id="@+id/hide_content"
|
||||||
dividerVertical="@{R.drawable.divider_l1}"
|
dividerVertical="@{@drawable/divider_l1}"
|
||||||
invisibleUnless="@{viewModel.loaded || !viewModel.items.empty}"
|
invisibleUnless="@{viewModel.loaded || !viewModel.items.empty}"
|
||||||
itemBinding="@{viewModel.itemBinding}"
|
itemBinding="@{viewModel.itemBinding}"
|
||||||
items="@{viewModel.items}"
|
items="@{viewModel.items}"
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
<import type="android.os.Build" />
|
<import type="android.os.Build" />
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.R" />
|
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.core.Info" />
|
<import type="com.topjohnwu.magisk.core.Info" />
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.core.InfoKt" />
|
<import type="com.topjohnwu.magisk.core.InfoKt" />
|
||||||
@ -781,8 +779,8 @@
|
|||||||
android:textAppearance="@style/AppearanceFoundation.Caption.Variant" />
|
android:textAppearance="@style/AppearanceFoundation.Caption.Variant" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
dividerHorizontal="@{R.drawable.divider_l1}"
|
dividerHorizontal="@{@drawable/divider_l1}"
|
||||||
dividerVertical="@{R.drawable.divider_l1}"
|
dividerVertical="@{@drawable/divider_l1}"
|
||||||
itemBinding="@{viewModel.itemDeveloperBinding}"
|
itemBinding="@{viewModel.itemDeveloperBinding}"
|
||||||
items="@{viewModel.items}"
|
items="@{viewModel.items}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.R" />
|
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.core.Config" />
|
<import type="com.topjohnwu.magisk.core.Config" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
@ -22,8 +20,8 @@
|
|||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/module_list"
|
android:id="@+id/module_list"
|
||||||
adapter="@{viewModel.adapter}"
|
adapter="@{viewModel.adapter}"
|
||||||
dividerHorizontal="@{R.drawable.divider_l1}"
|
dividerHorizontal="@{@drawable/divider_l1}"
|
||||||
dividerVertical="@{R.drawable.divider_l1}"
|
dividerVertical="@{@drawable/divider_l1}"
|
||||||
gone="@{viewModel.loading && viewModel.items.empty}"
|
gone="@{viewModel.loading && viewModel.items.empty}"
|
||||||
itemBinding="@{viewModel.itemBinding}"
|
itemBinding="@{viewModel.itemBinding}"
|
||||||
items="@{viewModel.items}"
|
items="@{viewModel.items}"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.R" />
|
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="viewModel"
|
name="viewModel"
|
||||||
type="com.topjohnwu.magisk.ui.settings.SettingsViewModel" />
|
type="com.topjohnwu.magisk.ui.settings.SettingsViewModel" />
|
||||||
@ -15,8 +13,8 @@
|
|||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
adapter="@{viewModel.adapter}"
|
adapter="@{viewModel.adapter}"
|
||||||
dividerHorizontal="@{R.drawable.divider_l_50}"
|
dividerHorizontal="@{@drawable/divider_l_50}"
|
||||||
dividerVertical="@{R.drawable.divider_l_50}"
|
dividerVertical="@{@drawable/divider_l_50}"
|
||||||
itemBinding="@{viewModel.itemBinding}"
|
itemBinding="@{viewModel.itemBinding}"
|
||||||
items="@{viewModel.items}"
|
items="@{viewModel.items}"
|
||||||
android:id="@+id/settings_list"
|
android:id="@+id/settings_list"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.R" />
|
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="viewModel"
|
name="viewModel"
|
||||||
type="com.topjohnwu.magisk.ui.superuser.SuperuserViewModel" />
|
type="com.topjohnwu.magisk.ui.superuser.SuperuserViewModel" />
|
||||||
@ -20,8 +18,8 @@
|
|||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/superuser_list"
|
android:id="@+id/superuser_list"
|
||||||
adapter="@{viewModel.adapter}"
|
adapter="@{viewModel.adapter}"
|
||||||
dividerHorizontal="@{R.drawable.divider_l1}"
|
dividerHorizontal="@{@drawable/divider_l1}"
|
||||||
dividerVertical="@{R.drawable.divider_l1}"
|
dividerVertical="@{@drawable/divider_l1}"
|
||||||
goneUnless="@{viewModel.loaded || !viewModel.items.empty}"
|
goneUnless="@{viewModel.loaded || !viewModel.items.empty}"
|
||||||
itemBinding="@{viewModel.itemBinding}"
|
itemBinding="@{viewModel.itemBinding}"
|
||||||
items="@{viewModel.items}"
|
items="@{viewModel.items}"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="com.topjohnwu.magisk.R" />
|
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="viewModel"
|
name="viewModel"
|
||||||
type="com.topjohnwu.magisk.ui.module.ModuleViewModel" />
|
type="com.topjohnwu.magisk.ui.module.ModuleViewModel" />
|
||||||
@ -24,8 +22,8 @@
|
|||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/module_filter_list"
|
android:id="@+id/module_filter_list"
|
||||||
dividerHorizontal="@{R.drawable.divider_l1}"
|
dividerHorizontal="@{@drawable/divider_l1}"
|
||||||
dividerVertical="@{R.drawable.divider_l1}"
|
dividerVertical="@{@drawable/divider_l1}"
|
||||||
itemBinding="@{viewModel.itemSearchBinding}"
|
itemBinding="@{viewModel.itemSearchBinding}"
|
||||||
items="@{viewModel.itemsSearch}"
|
items="@{viewModel.itemsSearch}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user