Hi everyone,

I am trying to use GestureDetector to detect when a user "press" an
element in a list and then release the pression (kind of onUp).

                        // Detect various events and gesture on the gallery
                        final GestureDetector gestureDetector = new 
GestureDetector(new
GestureDetector.SimpleOnGestureListener()
                        {
                        @Override
                        public void onShowPress(MotionEvent e)
                        {
                                //test
                        }

                        });

My question is simple. Where is the onUp function?

The doc says that about "onShowPress":

The user has performed a down MotionEvent and not performed a move or
up yet. This event is commonly used to provide visual feedback to the
user to let them know that their action has been recognized i.e.
highlight an element.

What is the callback that notifies the up has been performed?  (There
is a "onDown". Why not a "onUp"?).

Thanks a lot in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to