Reputation: 2491
Like a lot of people, I'm frustrated that there is no HorizontalListView in android. I'm using an implementation I've found here by Paul, which is great! But not perfect and not work well inside of ScrollView. In the new gallery that came with ICS (AOSP by google rom), there is a kind of HorizontalListView, when you choose a photo to show then in the bottom you have all the photos and you can scroll them.
I tried to found the source but with no help!
Does anyone knows where to find the source/this implementation?
Here's the current implementation I use: http://www.dev-smart.com/archives/34
Upvotes: 1
Views: 687
Reputation: 2491
Ok I solved my problem after looking in the Android's Gallery
source.
I've just added the line:
getParent().requestDisallowInterceptTouchEvent(true);
In the start of the onScroll
method.
This just say the parent to stop "taking" this view's touch events, and you get smooth scroll inside of ScrollView
.
Hope it helped someone.
Upvotes: 2