4. New Widgets

In this chapter, you are going to discover the new widgets that have become available since API 11 level. You will learn to display the calendar in the Android application through CalendarView and display a range of numbers through NumberPicker. You will also learn to display a stack of images using the StackView widget. Finally, you will learn to display a list of options using ListPopupWindow and display suggestions through PopupMenu.

Recipe: Displaying the Calendar in an Android Application

To display the calendar in an Android application, you will use CalendarView. This is a configurable widget that displays and selects dates. By default, the calendar of the current month is displayed, but you can scroll through to the desired ...

Get The Android™ Tablet Developer’s Cookbook 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.