There are two DatePickers, and the start and end dates are not crossed crying

Asked 2 years ago, Updated 2 years ago, 34 views

I have two datePickers to receive the start and end dates! so that the start date is not later than the end date or the end date is not earlier than the start date For example, Start date: If November 19, 2016, the end date can be set unconditionally to November 19, 2016 or later so that November 11, 2015 is not set.

Or Deadline: If it is set as November 20, 2016, the start date will not be November 25th!! I want to set it up like this, but is there an example source? ㅠ 설정 The setting problem is too complicated 도와주세 Please help me ㅠ

datepicker android

2022-09-22 11:46

2 Answers

Think about getting a D-Day.

If it doesn't meet the conditions after setting the time, shouldn't you put up a warning window?


2022-09-22 11:46

If you are using the calendar dialog using Android's official API, Is it possible to not set it right away in the date selection window? I don't know

As Kim Sunwoo said, when the date is set, In the exception you mentioned in the question, conditional statements are placed with a warning toast I think you can at least re-open the setup window.


2022-09-22 11:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.