ongakuer / CircleIndicator

A lightweight indicator like in nexus 5 launcher
Apache License 2.0
4.27k stars 712 forks source link

Can we use the CircleIndicator with a RecyclerView ? #24

Closed afaucogney closed 9 years ago

afaucogney commented 9 years ago

As recyclerView is the new standard, that may be interesting.

ongakuer commented 9 years ago

https://github.com/ongakuer/CircleIndicator/issues/23#issuecomment-119771184

afaucogney commented 9 years ago

Ok, thanks for commenting, but in this case, RecyclerView doesn't extends ViewPager class. So I'm trying to use it with https://github.com/lsjwzh/RecyclerViewPager.

I'm still working on, but I needed to change (I found no way to extends) the CircleIndicator lib to accept the RecyclerViewPager (that doest'nt extends ViewPager). Is there another way ?

ongakuer commented 9 years ago

Sorry ,It's only support for ViewPager.

But you can import CircleIndicator as module, and change ViewPager.OnPageChangeListener to RecyclerViewPager.OnPageChangedListener for yourself.