SimpleCheckboxPreference
Marc Auberer edited this page Jan 17, 2021
·
4 revisions
Equivalent of the CheckboxPreference
xml tag.
In your code:
SimpleSettings(this).show {
CheckboxPref {
title = "Title"
summary = "Summary"
defaultValue = true
...
}
}
In a seperate xml file:
<PreferenceScreen
xmlns:app="http://schemas.android.com/apk/res-auto">
<CheckboxPreference
app:key="key"
app:title="Title"
app:summary="Summary"
app:defaultValue="true"
... />
</PreferenceScreen>
© Marc Auberer 2020-2023