Can't Click button in Transparent Activty Android

232 Views Asked by At

i am trying add an transparent activity in front of an another activity. i added the transparent activity. i want both the transparent & behind activity button's clickable. but i can click behind activity's button. but in transparent activity's button i cant click because i added one line in transparent activity that is below

 getWindow().addFlags(
            WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                    | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
                    | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE );  

if i remove the above line from transparent activity i can't click the button in behind activity. i need both the behind & transparent activity's button clickable. please post any suggestion. thanks...

0

There are 0 best solutions below