ontouchevent

Tab content doesn't receive touch events

Hello, I have a TabHost activity with 2 child activities. My problem is that when I'm overriding the onTouchEvent method (for any of these two child activities) only the MotionEvent.ACTION_DOWN event is received. Any help would be appreciated. ...

How do I temporarily disable/bypass the Android OnTouchEvent

I'm currently using the event @Override public boolean onTouchEvent(MotionEvent ev) { To provide feedback from the user for game I'm writing. This event fires off some game control events that take some time to complete (because there is animation involved). The problem I'm having is during the animation if I keep touching the scree...

The advantage of onTouchEvent V.S. onScroll

I want to perform a smooth movement of a picture when user scroll it. So which one is better if my FPS is >60 ?? ...

Image manipulation while on touch event is inefficient !

I have two images overlayed and i copy pixels from bottom image to top image while ACTION_MOVE. My goal is to give erasing feeling to the user but sometimes it doesn't copy(erase) some parts and it gets worse if touch event is fast( dragging finger fastly). This is the code i am using for copying pixels mutable.getPixels(pixels, 0, wi...

Is it possible to consume events in android live wallpaper onTouchEvent()?

Hi. My live wallpaper is responding to touch events through the onTouchEvent() method, which works fine. The problem is: the home app also appears to be receiving these touch events, so if I swipe left in my wallpaper, the home screen also slides left. It'd be nice if it were possible for my wallpaper to selectively consume these event...