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

Vertical Carousel #1

Open
etelevantou opened this issue Mar 5, 2015 · 1 comment
Open

Vertical Carousel #1

etelevantou opened this issue Mar 5, 2015 · 1 comment

Comments

@etelevantou
Copy link

Hi, I am trying to convert your carousel to a vertical one. I am newish in Android and I kind of got lost in your code. Can you tell me where the views are getting created and how they get to be horizontal and not vertical?

Thanks

@applm
Copy link
Owner

applm commented Mar 5, 2015

View not created, but recycled from adapter. It is done in methods with names starting with refill. You would basically need to change all refill, removeNonVisible and layout methods from righn/left to top/bottom. Then change motion event handling methods from using x coordinaty to y coordinate.
Read that code. It is pretty nice and understandable by my opinion.

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

2 participants