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

indicator question #30

Open
namezhouyu opened this issue Aug 30, 2016 · 0 comments
Open

indicator question #30

namezhouyu opened this issue Aug 30, 2016 · 0 comments

Comments

@namezhouyu
Copy link

namezhouyu commented Aug 30, 2016

照片由多变少的时候(大于一变为小于等于一) 底部indicator没有被初始化
需要把RollPagerView中的initHint改为public 然后再适配器的getview中作判断
if (_urls.size() < 2) {
_viewPager.setHintView(null);
} else {
_viewPager.initHint(
new ColorPointHintView(_viewPager.getContext(), Color.parseColor("#394482"),
Color.parseColor("#88ffffff")));
}
我这里大于1张才显示indicator。
大神可以考虑把它加到LoopPagerAdapter中

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