How do I detect the onFling of a widget in a ScrollView?

I have a lot of ImageView on ScrollView (which scrolls vertically). And I want to detect vertically onFling from ImageView. I tried to implement SimpleGestureDetector for ImageView, then I can detect onFling when I click horizontally. But when I click vertically, I cannot detect. How can I determine vertically onFling?

I found some solution to the problem similar to mine:

How to use gestures with scrollview - android?

If I only have one ImageView on my ScrollView, this solution might work, but I have multiple ImageViews on the ScrollView that are dynamically generated. So maybe this solution won't work for me ...

+3
android


source to share


No one has answered this question yet

See similar questions:

0
How to use gestures with scrollview - android?

or similar:

3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
2510
How to persist android activity state by persisting instance state?
1002
Grid motion detection
343
Android: how to make the keyboard enter a button say "Search" and handle its click?
223
HorizontalScrollView in manual mode
136
Scrollview vertical and horizontal in android
27
Gesture detection and scrolling issue
4
Android - multiple vertical scrolling in horizontal scrolling
0
QML QtQuick.Controls 2.2 ScrollView - how to disable horizontal click?
0
LinearLayout not returning onFling?



All Articles
Loading...
X
Show
Funny
Dev
Pics