android - overdraw layout allows touch through LinearLayout

后端 未结 3 1020
自闭症患者
自闭症患者 2021-02-07 05:47

in the following UI I have this below drabable overlaying the entire screen. The LinearLayout is transparent and allows controls below it to be clickable or touchable. Basically

3条回答
  •  萌比男神i
    2021-02-07 06:01

    Just setting the android:clickable="true" property for the LinearLayout in the XML will prevent the clicks going through -- no need for a click listener.

提交回复
热议问题