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

calendarViewAdapter.notifyDataSetChanged()为刷新view 手动触摸触发setPrimaryItem时 触发视图刷新 #176

Open
blackist opened this issue Jan 24, 2019 · 1 comment

Comments

@blackist
Copy link

日历初始化的时候 请求网络数据 数据返回以后调用calendarViewAdapter.notifyDataSetChanged()率先你视图,无效果;手动轻微滑动视图但未触发monthPager的onPageSelected,logcat出现日志setPrimaryItem,此时视图刷新,日历日期产生预期效果

@weiaiSanli
Copy link

这个你解决了吗

日历初始化的时候 请求网络数据 数据返回以后调用calendarViewAdapter.notifyDataSetChanged()率先你视图,无效果;手动轻微滑动视图但未触发monthPager的onPageSelected,logcat出现日志setPrimaryItem,此时视图刷新,日历日期产生预期效果

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