How to create an overlay that blocks touch events to UI below it?

前端 未结 5 1454
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 17:27

I used a layer of framelayout with a semi-translucent background to create an overlay. But this overlay doesn\'t block touch events to interact with the views below it. How sho

5条回答
  •  渐次进展
    2021-02-05 17:57

    put the button on overlay layer.then set that button android:background="@null" it block touch event of view below it..hope it solve your problem

提交回复
热议问题