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每次notifyDataSetChanged之后,所设置的PageTransformer显示就出问题? #6

Open
w0080626 opened this issue Mar 7, 2017 · 1 comment

Comments

@w0080626
Copy link

w0080626 commented Mar 7, 2017

第一次setPageTransformer之后可以正常使用,但是当notifyDataSetChanged之后,其显示就有问题。但是只要viewpager一滑动,PageTransformer的效果就有了。 正常情况下我设置的PageTransformer是这样的,两边没有显示的比较小,而当前位置的显示大: 但是当notifyDataSetChanged之后,显示效果成这个样子了: 不过只要有滑动,显示效果又没问题了。

这是个什么情况,要如何notifyDataSetChanged之后就可以显示PageTransformer的效果?

@briskemen
Copy link

同样遇到该问题。有一个解决方案,但是效果不行。

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