Question: How can I create a `ListPreference` with `checkbox`?
I know how to use `ListPreference`, but I need multiple selection like in Alarm application on "repeat" preference.

like this screenshot:

![checkboxes](https://i.stack.imgur.com/l6NKM.png)

Answer: 
Use, MultiSelectListPreference

```
<MultiSelectListPreference
        app:defaultValue="@array/watermark_entries_view"
        app:dialogTitle="Select Watermark Type"
        app:entries="@array/watermark_entries_view"
        app:entryValues="@array/watermark_entries_values"
        app:key="mode_repeat"
        app:summary="Enable Watermark"
        app:title="Watermark" />

```
There is no built-in preference for that AFAIK. `ListPreference` is single-select only.

You could create your own custom `Preference` class, though, by extending `DialogPreference`.