You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Change date/time with keyboard then hit ok
2. The listeners do not get triggered therefore not updating the value.
3.
What is the expected output? What do you see instead?
I expect the date/time I set using the keyboard to be updated
What version of the product are you using? On what operating system?
Android SDK 4.0.4/4.1.1
Please provide any additional information below.
Solution is easy if you add listeners for keyboard input and in the listeners
you update the Calendar object values
Original issue reported on code.google.com by [email protected] on 13 Feb 2013 at 5:20
The text was updated successfully, but these errors were encountered:
For those interested, calling datepicker.clearFocus()/timepicker.clearFocus()
when the OK button is clicked solves this problem. Looking at the
DatePickerDialog code helped me figure it out.
For Android L its not updating the UI. but for Kitkat i have checked it works
fine. is this the android Bug? or any other work around to fix this issue?
Solution: I have tried----> DatePicker datePicker = (DatePicker)
mDateTimeDialogView.findViewById(R.id.DatePicker);
// Init time picker
TimePicker timePicker = (TimePicker) mDateTimeDialogView.findViewById(R.id.TimePicker);
datePicker.clearFocus();
timePicker.clearFocus();
then getting the values for Day, Year Month then its working!!!
But from DateTimePicker.class get(Calender.Year) not working!!! pls help.
Original issue reported on code.google.com by
[email protected]
on 13 Feb 2013 at 5:20The text was updated successfully, but these errors were encountered: