O'Reilly logo

The Android™ Tablet Developer’s Cookbook by B.M. Harwani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required