Android-SwitchDateTimePicker icon indicating copy to clipboard operation
Android-SwitchDateTimePicker copied to clipboard

Select Hours

Open hiralpatel opened this issue 6 years ago • 4 comments

While calendar view shows with a selected current date if I didn't choose a date and directly press the ok button the time picker view is not showing. How can I do that for show selection for a time?

hiralpatel avatar Apr 16 '18 07:04 hiralpatel

I don't really understand what you mean. When you pressed the " ok " button, the dialog dismiss, you get the DateTime and that's all we need. If you want to open the dialog again, open it in your code.

J-Jamet avatar Apr 23 '18 08:04 J-Jamet

Yes I get date and time always, but the scenario is like. When the date picker shows, without clicking/selecting date if we press "OK" button it is not showing Time picker. I want to show time picker compulsory after date picker.

hiralpatel avatar Apr 23 '18 10:04 hiralpatel

The purpose of the library is to show the date, time and year in a single dialog box, the ok button validates the entire dialog box and indicates that the user is happy with the year, the date and the time indicated in the header. If he wants to change a value, he passes between the views by clicking on the button of the header or on a label. In any case, the ok button will validate the information displayed, which is normal. If you want to manage the views separately, use the elements provided by android instead.

J-Jamet avatar Apr 23 '18 17:04 J-Jamet

just incase, If any one looking for Date and time selection mandatory, I've implemented changes here

praveenb avatar Feb 01 '24 13:02 praveenb