I’m writing a configuration menu with many options and I’d like to add in the main PreferenceScreen an option that can launch an other PreferenceScreen.
I can’t figure out how to create a generic menu entry (so, nor EditTextPreference nor CheckBoxPreference etc.)
Thanks to all.
Nest your
PreferenceScreenelements. The innerPreferenceScreenwill hold the contents of the second screen; the title and description you put on the innerPreferenceScreenwill be your “generic menu entry”.For example:
(which is from this sample project)