Interesting.  I'm returning false, because when I was using the Button
class the button highlighting didn't work right if my touchHandler
returned true.  See Romain Guy's reply to my question in this thread:
    
http://groups.google.com/group/android-developers/browse_thread/thread/0133ac99a57f7f91#
I haven't previously tried returning true from a touchHandler for the
ImageView or ImageButton classes.

Results:

With the ImageView class, I get ACTION_UP only if my touchHandler
returns true.

With the ImageButton class, I get ACTION_UP regardless of whether my
touchHandler returns true or false, but if I return false, the button
highlighting doesn't work correctly.

With my own subclass of ImageButton, which forces the defStyle to 0
(rather than the value com.android.internal.R.attr.imageButtonStyle
used in the ImageButton class), I get ACTION_UP only if my
touchHandler returns true.

Why does the defStyle affect this?

Where in the view or widget sources is the decision as to whether to
deliver ACTION_UP events being made?

Thanks,
Eric

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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