1

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

4

1 に答える 1

2

AndroidのGalleryソースを調べた後、問題を解決しました。次の行を追加しました。

getParent().requestDisallowInterceptTouchEvent(true);

メソッドの開始時onScroll。これは、親がこのビューのタッチイベントを「取得」するのをやめるように言うだけで、 内でスムーズにスクロールできますScrollView

それが誰かを助けたことを願っています。

于 2012-07-03T19:53:18.900 に答える