romandanylyk / PageIndicatorView

An page indicator for Android ViewPager
4.62k stars 561 forks source link

Different behaviour on animation #45

Open TheRishka opened 7 years ago

TheRishka commented 7 years ago

Hi! I'm trying to achieve quite different behaviour, using your library. In short: count of pages can be, i.e, 24, but indicators count should be, like, 8. And when user has reached the end of indicators row (selected indicator position is 8, i.e.), the next move will cause the whole row to slide to the opposite direction so another "free" indicator is shown. And afterwards, currently selected indicator moves to the freshly "freed" one. I hope i described it clearly:) Is it possible to achive? If not, what would you suggest to change in your code to achive desired behaviour?

romandanylyk commented 7 years ago

Hi @TheRishka very nice feature for this kind of library. As I understand you want to achieve same result with indicator as Instagram app has (while there are few photos in a single post). Currently there no such feature in PageIndicatorView but it will be a great feature for future releases, so I'll mark this issue as enhancement.

TheRishka commented 7 years ago

@romandanylyk Ye, kinda like Instagram app, but with scroll feedback (indicator moves when user scrolls page) Any ideas about how to achieve so?:) I've tried to do it by myself, but faced quite annoying behaviour of onPageScrolled method =/

niroj08 commented 6 years ago

Any progress in enhancement? @romandanylyk