Code example for TimePicker

Methods: setCurrentHoursetCurrentMinutesetOnTimeChangedListener

0
	} 
 
	private void initDateControls() 
	{ 
		datePicker.init(currentState.getInputDate().getYear(), currentState.getInputDate().getMonth(), currentState.getInputDate().getDay(), new DatePickerChangeListener());
		timePicker.setCurrentHour(currentState.getInputDate().getHour());
		timePicker.setCurrentMinute(currentState.getInputDate().getMinute());
		timePicker.setOnTimeChangedListener(new TimeChangedListener());
	} 
 
	void refreshDateControls() 
	{ 
		refreshingControls = true;
		datePicker.updateDate(currentState.getInputDate().getYear(), currentState.getInputDate().getMonth(), currentState.getInputDate().getDay());
		timePicker.setCurrentHour(currentState.getInputDate().getHour());
		timePicker.setCurrentMinute(currentState.getInputDate().getMinute());
		refreshingControls = false;
	} 
 
	private class SetNowClickListener implements OnClickListener