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.
ViewFlipper shows only one child widget
or container at a time. So does an
AdapterViewFlipper. The difference
is where the children come from. With a regular
ViewFlipper, you add
children much like you would any other standard container class, such
as defining the children in your layout XML resource. With
AdapterViewFlipper, the children come from an
AdapterViewFlipper does not inherit from
(or vice versa, for that matter), their public API is largely the same:
showPrevious()methods to rotate between them.
AdapterViewFlipperto automatically flip between children on a specified period.
There are two key advantages for
Adaptermodel, it can be more memory efficient for lots of children, through child view recycling
AdapterViewFlipper is new to API Level 11 and is unavailable on older
versions of Android. It is not included in the Android Support package backport.
All of the usage tips from
ViewFlipper are relevant for
The preview of this section was whisked away by a shark-infested tornado.
The preview of this section is presently indisposed.