Create a standard Android settings dialog

The new Android developer is here - I hope it is simple. I want to create a string-based prefs dialog, as you see in most standard applications. You know, black background, decay line dividers, large / bold text labels for each entry, a smaller description text, possibly a flag / down arrow.

Is there a standard object in the Android API for this? If not, how do people usually create them?

+4
source share
1 answer

Yes, there is a special Activity for this view called PreferenceActivity .

You can find a complete example here .

NTN

Thomas

EDIT: This example is a code-based preference dialog, but there is another way to do this with the xml layout file.

+6
source

All Articles