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

【Android】viewPager控件showIndicator与currentPageColor顺序问题 #342

Open
faimin opened this issue Jan 5, 2021 · 0 comments
Open

Comments

@faimin
Copy link

faimin commented Jan 5, 2021

showIndicator(true)然后currentPageColor(Color(0, 0, 0)) 报错,调整一下二者的先后顺序就正常了。

self.viewPager
            :autoScroll(false)
            :recurrence(true)
            :setPreRenderCount(0)
            :setScrollEnable(true)
            :pageDotColor(Color(0, 0, 0, 0.1))
            :showIndicator(true) 
            :currentPageColor(Color(242, 114, 174))
            :adapter(self:setupViewPageAdapter())
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