Chapter     17

Android’s ViewPager Class: Using ViewPager to Navigate Horizontally

Android’s ViewPager class is another recent addition to the Android 4.0 OS, and is the most complicated of the new UI layout container classes added in the android.support.v4 libraries.

This is because ViewPager class uses the PagerAdapter(Array) class (object) to manage the View object pages, which is why it is called a ViewPager in the first place.

The ViewPager UI layout class was developed to help developers to design a multi-panel side-to-side swipeable horizontal UI that allows users to flip between different View objects. In this chapter, you will use ImageView UI widgets to hold your images of space (your stars and galaxy image assets).

The ViewPager class ...

Get Pro Android UI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.