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

每页的第一个日期点击没响应bug #89

Open
QianChaoha opened this issue Aug 16, 2022 · 1 comment
Open

每页的第一个日期点击没响应bug #89

QianChaoha opened this issue Aug 16, 2022 · 1 comment

Comments

@QianChaoha
Copy link

QianChaoha commented Aug 16, 2022

一 前提
1.TestMiui9Activity中月视图,使用CalendarView2
2.在onBindCurrentMonthOrWeekView,onBindCurrentMonthOrWeekView和onBindCurrentMonthOrWeekView中都加上点击事件

view.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                   System.out.println("-----------------");
            }
  });

二 问题
无论在当前页还是滑动到其他页面,第一个日期点击没有相应,其他日期点击正常

@QianChaoha
Copy link
Author

QianChaoha commented Aug 16, 2022

我去,搞了好多天没解决,刚来github上提issue就解决了。解决办法有两种
1.CalendarView2改为RecycleView,对应的GridCalendarAdapter也改掉
2.参考[GridView第一个Item点击事件无响应的解决方案] https://blog.csdn.net/weixin_39922361/article/details/117634095

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

1 participant