0
I have some preferences within the PreferenceScreen in the archive xml/preferences.xml. These are some items that I need to be shown to the user. See below:
<Preference
android:key="pref_key_info"
android:title="@string/info" />
<Preference
android:key="pref_key_version"
android:summary="@string/info_version_sumary"
android:title="@string/info_version" />
When you click on the first item, in case the <preference> keyed pref_key_info, I want you to open a dialog screen with some information.
How to place an event onClick in the <preference>?