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.
- Open the
ReviewActivityJava source in your editor or IDE.
- Below of all the fields you've declared so far, we need to add some more for the Reservations tab. Declare a
Stringto remember the formatting of the How Many People: label:
private String peopleLabelFormat;
- Then declare a reference to the How Many People: label:
private TextView peopleLabel;
- Declare a
SimpleDateFormatobject for the format ...