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

viewpager 切换月份卡顿 #5

Open
foxsent opened this issue Aug 18, 2016 · 3 comments
Open

viewpager 切换月份卡顿 #5

foxsent opened this issue Aug 18, 2016 · 3 comments

Comments

@foxsent
Copy link

foxsent commented Aug 18, 2016

你好,在使用您的日历控件过程中,对viewpager那个模块儿,我对每个cell增加了网格,并在标题部分增加上一月、下一月按钮,快速点击上一月、下一月过程中会出现页面卡顿

@TUBB
Copy link
Owner

TUBB commented Aug 18, 2016

每个月UI渲染确实比较耗时,暂时也没找到好的优化方法^_^(可以减少每日UI的层级来减少渲染时间)
不过针对viewpager使用时,动态设置当前的item可以把viewpager的过度动画去掉,效果会好一些

ViewPager.setCurrentItem(index, false);

@foxsent
Copy link
Author

foxsent commented Aug 18, 2016

viewpager 中 添加new DecorDayViewInflater(getActivity())后,滑动过程中两个月的横线连在一起,有办法解决吗

@TUBB
Copy link
Owner

TUBB commented Aug 19, 2016

左右可以弄点间隔,😄

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