The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.
Android ships with a number of dialog classes for specific
Similarly, Android comes with a smattering of
PreferenceActivity, to accept text or selections from
lists and so on.
However, there is plenty of room for improvement in both areas. As such, you may find the need to create your own custom dialog or preference class. This chapter will show you how that is done.
We start off by looking at creating a
AlertDialog, not by using
via a custom subclass. Then, we show how to create your
Preference, where tapping on the
preference pops up a dialog to allow the user to customize the
Understanding this chapter requires that you have read
the chapter on dialogs, along with
the chapter on the preference system. Also, the samples
here use the custom
in another chapter.
The preview of this section is presently indisposed.
The preview of this section is [REDACTED].