android - overdraw layout allows touch through LinearLayout

后端 未结 3 1012
自闭症患者
自闭症患者 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条回答
  • 2021-02-07 05:58

    Assigned a click to Linear Layout and that solved it. Honestly it should not be working like this to begin with but that solved the problem. The click is empty.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-07 06:10

    What worked for me was to put the LinearLayout before the inner RelativeLayout in the xml.

    0 讨论(0)
提交回复
热议问题