mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 04:54:17 +01:00
Use MD3 divider in ControllerActivity
This commit is contained in:
parent
236b754559
commit
ab553c9671
@ -234,8 +234,6 @@ class ControllerActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dividerItemDecoration.drawable.let { it?.setTint(obtainStyledAttributes(intArrayOf(R.attr.colorOutlineVariant)).use { attr -> attr.getColor(0, Color.BLACK) }); it }
|
|
||||||
binding.controllerList.addItemDecoration(dividerItemDecoration)
|
binding.controllerList.addItemDecoration(dividerItemDecoration)
|
||||||
|
|
||||||
update()
|
update()
|
||||||
|
@ -43,6 +43,8 @@
|
|||||||
<item name="preferenceFragmentCompatStyle">@style/App.PreferenceFragment.Material</item>
|
<item name="preferenceFragmentCompatStyle">@style/App.PreferenceFragment.Material</item>
|
||||||
<!-- Override the default switch preference style to use the MD3 switch -->
|
<!-- Override the default switch preference style to use the MD3 switch -->
|
||||||
<item name="switchPreferenceCompatStyle">@style/App.Preference.SwitchPreferenceCompat.Material3</item>
|
<item name="switchPreferenceCompatStyle">@style/App.Preference.SwitchPreferenceCompat.Material3</item>
|
||||||
|
<!-- Override the default divider used by DividerItemDecoration -->
|
||||||
|
<item name="android:listDivider">@drawable/preference_list_divider_m3</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AppTheme" parent="BaseAppTheme">
|
<style name="AppTheme" parent="BaseAppTheme">
|
||||||
|
Loading…
Reference in New Issue
Block a user