Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why GestureOverlayView is so slow?

I detect swipe gesture on 2 views with different methods: first is via GestureDetector, and the second is GestureOverlayView (I need this because the 2nd view is the GridView and GestureDetector does not work properly on this).

The first is almost instant, but the second has delay about 1 second (Nexus S, ICS). Why, and how can I fix it?

I can not change the method, because I'll need to recognize more complicated gestures later, but I want it to work instantly.

like image 300
artem Avatar asked Dec 27 '22 01:12

artem


1 Answers

I found the solution:

android:fadeOffset="0"
android:fadeDuration="0"

And it works instantly :)

like image 147
artem Avatar answered Jan 04 '23 17:01

artem