How can I disable a view behind my SlidingDrawer in Android?

后端 未结 5 2153
后悔当初
后悔当初 2021-01-01 16:56

I have a SlidingDrawer that pops up from the bottom of the screen and fills the screen about 80%. Even though the SlidingDrawer view is in focus, it is still possible to cli

5条回答
  •  太阳男子
    2021-01-01 17:23

    Here's a way to get around this problem (I needed a solution also) - grab the linearLayout that holds the contents and add a click listener. Have the click listener respond to clicks (throw away, whatever) - and this then stops it propagating to the view below the sliding drawer - it works for me - and it doesn't block the other items in the drawer.

提交回复
热议问题