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

如何初始化特定月份? #169

Open
SoloAlien opened this issue Jul 20, 2018 · 3 comments
Open

如何初始化特定月份? #169

SoloAlien opened this issue Jul 20, 2018 · 3 comments

Comments

@SoloAlien
Copy link

有这样一个需求,在上一界面选择好月份,然后跳转到该月份的日历界面,但是我使用了各种方法,都没法实现,不管是传哪一个月份,移动它的position,结果依然是本月的数据,有什么方法可以解决这个问题吗?望告知。

@SoloAlien
Copy link
Author

calendarAdapter.notifyDataChanged(new CalendarDate(2018,5,5));这个方法总是会报下标越界,并没有什么卵用

@Allen-Guof
Copy link

老哥,有解决方案了吗

@SoloAlien
Copy link
Author

@tonygf 好久没动这个了,刚刚回去看了,应该是调用CalendarDate类中的CalendarDate(int year, int month, int day)这个方法将当前的日期设置进去,然后调用calendarAdapter.notifyDataChanged(transferDate, false);去更新就行了

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