Time for action - initializing the reservation tab

In the Reservation tab we made use of formatted labels. These labels shouldn't be displayed to the user as-is, but need to be populated with data before we let the user see them. For this, we need to go to our Java code again and build some functionality to remember the format, and populate the label.

  1. Open the ReviewActivity Java source in your editor or IDE.
  2. Below of all the fields you've declared so far, we need to add some more for the Reservations tab. Declare a String to remember the formatting of the How Many People: label:
    private String peopleLabelFormat;
  3. Then declare a reference to the How Many People: label:
    private TextView peopleLabel;
  4. Declare a SimpleDateFormat object for the format ...

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.