Marche101
Marche101

Reputation: 825

Create Carousel Style ViewPager

I'm looking to try and implement this style pattern into my application:

http://www.androidpatterns.com/uap_pattern/carousel

But I am having trouble in finding an existing library or solution to it. Does anybody know of any libraries that I could use or how I would go about implementing this?

So far, Ive found this:

http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html

but it isn't quite what I want as it would be nice if it was hosted inside of a ViewPager so I can have buttons etc inside the view.

Upvotes: 0

Views: 1110

Answers (1)

ianhanniballake
ianhanniballake

Reputation: 199880

You might try twoway-view, an implementation of an AdapterView (similar to ListView/GridView) that supports horizontal scrolling.

In this case, you'd use it more like a ListView rather than a ViewPager, so each element would be a separate item layout, rather than Fragment.

One example of where twoway-view is in use right now is the latest Firefox for Android nightly as discussed on the announcement post, which contains some screenshots of it in use: enter image description here

Upvotes: 1

Related Questions