blipinsk / FlippableStackView

An Android library introducing a stack of Views with the first item being flippable.
Apache License 2.0
810 stars 150 forks source link

Flip stacks at the run-time #15

Closed NullPonyPointer closed 8 years ago

NullPonyPointer commented 8 years ago

How can we flip stacks at the run-time, for example setCurrentItem(...) should behave but it's not working!

Any ideas?

blipinsk commented 8 years ago

FlippableStackView is just a ViewPager that displays its items a bit differently. You need to think of a way you would do this with a regular ViewPager. You should use setCurrentItem(...) method.

NullPonyPointer commented 8 years ago

Thanks for your fast response, as I already mentioned I have used the following method:

stack.setCurrentItem(stack.getCurrentItem() + 1, true); or stack.setCurrentItem(stack.getCurrentItem() - 1, true);

But nothing happens!

blipinsk commented 8 years ago

I'm trying the same thing with the sample app and it's working correctly. Is your issue with the fact that you cannot see the actual flip?