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

How i disable previous day selection in calender? #139

Open
sanjeet007 opened this issue Dec 30, 2021 · 6 comments
Open

How i disable previous day selection in calender? #139

sanjeet007 opened this issue Dec 30, 2021 · 6 comments

Comments

@sanjeet007
Copy link

Expected Behavior / Goal

?

Actual Behavior

?

Steps to Reproduce the Problem (sample code if possible)

Specifications

  • Android Version:
  • Horizontal-Calendar Version:
@SumitTrivedi073
Copy link

SumitTrivedi073 commented Jan 6, 2022

Replace this into your calendar activity

            Calendar startDate = Calendar.getInstance();
	startDate.add(Calendar.MONTH, 0);
	Calendar endDate = Calendar.getInstance();
	endDate.add(Calendar.MONTH, 2);

@sanjeet007
Copy link
Author

Replace this into your calendar activity

            Calendar startDate = Calendar.getInstance();
	startDate.add(Calendar.MONTH, 0);
	Calendar endDate = Calendar.getInstance();
	endDate.add(Calendar.MONTH, 2);

Will it disable previous day date selection without affecting calendar

@sanjeet007
Copy link
Author

Thanks for replying I will use this code

@sanjeet007
Copy link
Author

sanjeet007 commented Jan 6, 2022

One more thing can i change its ui means can i customized it's layout of horizontal calendar view?

@SumitTrivedi073
Copy link

yes you can but depend what you want to achieve

@darias08
Copy link

Anyway how I can disable weekends and keep it between Monday through Friday?

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

3 participants