Reputation: 111
Hi stackoverflow I'm trying to click on button it is behind on transparent activity and current appear on screen this transparent activity so how it possible can you help me ?
Upvotes: 0
Views: 328
Reputation: 1893
Add this code to the transparent activity (onCreate):
getWindow().addFlags(
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
Upvotes: 1