OK, just for the reference of others, there's the fix, which works.
Returning true means the subsequent ACTION_UP is received. calling the
onTouchEvent method of the parent ensures that the event gets passed
up the stack. Of course, there's another method to set myParent.

                                                @Override
                                                public boolean onTouch(View 
arg0, MotionEvent event) {
                                                        switch( 
event.getAction() ){
                                                        case 
MotionEvent.ACTION_DOWN:
                                                                
setBackgroundResource(R.color.on_touch_orange);
                                                                break;
                                                        case 
MotionEvent.ACTION_UP:
                                                                
setBackgroundResource(0);
                                                                break;
                                                        }
                                                        if( myParent != null ) {
                                                                        
myParent.onTouchEvent(event);
                                                        }
                                                        return true;
                                                }} );

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to