GestureDetector的onFling()和onSingleTapUp()方法无法触发

解决方法:

onDown方法默认return了false,导致依赖于onDown的onFling()和onSingleTapUp()方法无法被触发

重写onDown,使得return true即可。

Leave a Reply

Your email address will not be published.