android - How to make View in WindowManager intercept all the touches? -


I have a little (100 * 100) view, which I added to the window manager, and I want it All touch events, including those, are outside this scene. By default, touching outside this scene is done by viewing "behind" behind this scene.

Use the method of activity

process the touch screen event You can override it to block all touch screen events before being sent to the window.

This code will allow your small footage to block all touch events.

  @ Override public boolean dispatch touchIVER (MotionEvent ev) (little bit. Touch Event (eve);}    

Comments