Sure, there is a better way: use a button with a custom background, which
should be a state-based drawable, pointing to individual images for various
states: default, selected, disabled, etc...

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

22.10.2010 1:36 пользователь "Bill C" <[email protected]> написал:

I need to specify the full button images for both the up and down
positions.  My impression is that the most probable choice is to use
an custom button based on the ImageView and specify the image for up
and down positions.  I am using the OnTouchEvent method to capture the
ACTION_DOWN, but I'm not getting the ACTION_UP event.

Is there a better choice for creating a button that controls the full
button image, catches the Down/Up and can subdivide the down time into
time slices?  If not, how do I catch the up event.

My application expects a screen touch on the "button" and not a
keyboard action.

Thx,
Bill

--
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]<android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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