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: 
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`.
For boolean values you must use a SwitchPreference, as follows:

```
  <SwitchPreference
        android:defaultValue="true"
        android:key="example_switch"
        android:summary="@string/pref_description_social_recommendations"
        android:title="@string/pref_title_social_recommendations" />

```