I want to create a custom list dialog when I click on a ListPreference in Settings Activity.
ListPreference in root_preferences.xml:
<ListPreference
android:icon="@drawable/pref_language"
app:defaultValue="en"
app:entries="@array/language_entries"
app:entryValues="@array/language_values"
app:iconSpaceReserved="false"
app:key="@string/prefkey_language"
app:summary="%s"
app:title="@string/language_title" />
I want it to have rounded corners, and I also want custom listitem views (e.g. images instead of the default radiobuttons).
Actual result:
Expected result:
Can I do this in a way that I use ListPreference, but replace @array entries with an adapter?
Is there any other way to achieve this without needing to get rid of the PreferenceScreen?


