Pass touches to the view under

后端 未结 3 911
情歌与酒
情歌与酒 2020-12-10 00:35

In my app I have a fragment on top of the activity. The fragment is filling the whole screen. Part of the fragment is a transparent View and you can see the views under (tha

3条回答
  •  长情又很酷
    2020-12-10 01:02

    You can use special flag in layoutParams.

    (https://stackoverflow.com/a/53955777/2885859)

    WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
    

提交回复
热议问题