desau
desau

Reputation: 3021

Creating a standard Android preferences dialog

New Android developer here - I'm hoping this is simple. I want to create a "row-based" prefs dialog, like you see in most standard apps. You know, black background, fading-line separators, bigger/bold label text for each entry, smaller description text, perhaps a checkbox/down arrow.

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

Upvotes: 4

Views: 3404

Answers (1)

tbruyelle
tbruyelle

Reputation: 13045

Yes, there is a special Activity for that kind of view called PreferenceActivity.

You can find a full example here.

HTH

Thomas

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

Upvotes: 6

Related Questions