Building the reservation tab

While the Review and Photos tabs of this example have been concerned with displaying information, the Reservation tab will be concerned with capturing the details of a reservation. We really only need three pieces of information:

  • The name under which the reservation needs to be made
  • The date and time of the reservation
  • How many people the reservation is for

In this part of the example we'll create several widgets which have formatted labels. For example, How Many People: 2, which will update the number of people as the user changes the value. In order to do this simply, we specify that the widget's text (as specified in the layout file) will contain the format to use for display. As part of the initialization procedure, ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.