Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

How to Auto Scroll #80

Open
pangff opened this issue Oct 23, 2012 · 3 comments
Open

How to Auto Scroll #80

pangff opened this issue Oct 23, 2012 · 3 comments

Comments

@pangff
Copy link

pangff commented Oct 23, 2012

I use ViewFlow in my application as an image gallery. And I want the image can scroll automatically. So I start an thread to invoke setSelection method, but I can not get the scroll animation。Then I set the startScroll scroll duration to 2000ms in setVisibleView method .But, It seems only the first view to second view has the scroll animation. What can I do to realize auto scroll with viewflow library?

@Tooto
Copy link

Tooto commented Feb 4, 2013

i need this thing too. is it possible?

@superlandero
Copy link

Hi, this can autoscroll modifying the PRIVATE method postViewSwitched(int direction)
[when direction > 0 is to the right,
direction < 0 is to the left
and direction = 0 just returns].
Can change it to PUBLIC or use it on OTHER FUNCTION.
You may have to do some validations (i think), but this is working nice for me.

@configurer
Copy link

Can you give me code snippet for this? I found method "postViewSwitched(int direction) " but don't know how to add animations.

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants