Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Min or Max Date validation #31

Closed
bharatlagad opened this issue Dec 9, 2017 · 25 comments
Closed

Min or Max Date validation #31

bharatlagad opened this issue Dec 9, 2017 · 25 comments

Comments

@bharatlagad
Copy link

Hello,

have you provided some way to set min max date programmatically.

@huanghaibin-dev
Copy link
Owner

yes, to use CalendarView attrs, for example: app:min_year="2004" and app:max_year="2050"

@bharatlagad
Copy link
Author

want to set min date like 09/12/2017 and max date like 12/02/2017 is it possible to set programatically.

@huanghaibin-dev
Copy link
Owner

@bharatlagad this function is not available now. I can provide this function next Monday, you‘ d better wait for two days.

@bharatlagad
Copy link
Author

@huanghaibin-dev OK thank you

@bharatlagad
Copy link
Author

Hello,

Have you done with Min Max date?

@huanghaibin-dev
Copy link
Owner

Hello, please wait a moment, I'm testing it.

@bharatlagad
Copy link
Author

OKAY THANKS

@huanghaibin-dev
Copy link
Owner

@bharatlagad Hello, It's done

@bharatlagad
Copy link
Author

Thanks a lot.

@bharatlagad
Copy link
Author

can we set min date max date programatically except xml.

@huanghaibin-dev
Copy link
Owner

@bharatlagad OK, Let me try.

@bharatlagad
Copy link
Author

@huanghaibin-dev OK

@bharatlagad
Copy link
Author

Hello sir,

Have you done with min max date?

@huanghaibin-dev
Copy link
Owner

I'm sorry. I'm busy these days. I can finish it this afternoon.

@bharatlagad
Copy link
Author

Okay,no problem.

@huanghaibin-dev
Copy link
Owner

@bharatlagad Hello, It's done, to use api CalendarView.setRange(int minYear, int minYearMonth,
int maxYear, int maxYearMonth)

@bharatlagad
Copy link
Author

@huanghaibin-dev Thanks a lot...
can you please send me... linkedin profile link.

@huanghaibin-dev
Copy link
Owner

Sorry. I have no linkedin account. In china, very few programmer use linkedin. I work in open source china(https://my.oschina.net/huanghaibin).

@bharatlagad
Copy link
Author

i don't know Chinese...

@huanghaibin-dev
Copy link
Owner

haha, we can contact each other via github or email.

@bharatlagad
Copy link
Author

ok sure bharat.lagad@gmail.com. I don't have much experience but i am interested to work with you.

@bharatlagad
Copy link
Author

Hello
There is small mistake in Delegate class in setRange method min and max month assign to max month

@bharatlagad
Copy link
Author

Sorry my English

@huanghaibin-dev
Copy link
Owner

Never mind. please tell me the line.

@bharatlagad
Copy link
Author

Class CustomCalendarViewDelegate
line-214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants