java - Is it possible to set FLAG_NOT_TOUCHABLE on an activity, but also close the activity when a touch occurs? -


i set flag_not_touchable on transparent activity allow interaction activity below. there way close transparent activity when user touches screen while these flags set?

i not believe you'd able determine if user touched screen if flag_not_touchable set. activity not receive touch events @ all.

instead, can set ontouchlistener root view, return false indicating not want handle touch. way, you'll receive first touch event (action_down) allows call finish() , go.


Comments

Popular posts from this blog

linux - Could not find a package configuration file provided by "Qt5Svg" -

simple.odata.client - Simple OData Client Unlink -