Time for action - selecting date and time
We've made the
SeekBar work as expected, but what about the
time Button widgets? When the users touch them, they expect to be able to select a different date or time for their reservation. For this we'll need a good old
- Open the
ReviewActivityJava source in your editor or IDE again.
View.OnClickListener, DatePickerDialog.OnDateSetListener, and
TimePickerDialog.OnTimeSetListenerto the interfaces that
ReviewActivityimplements. Your class declaration should now look something like this:
public class ReviewActivity extends TabActivity implements ViewSwitcher.ViewFactory, Runnable, AdapterView.OnItemSelectedListener, SeekBar.OnSeekBarChangeListener, ...