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

后端 未结 5 2111
后悔当初
后悔当初 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

    I don't know if this will work, but it's worth a try. Call setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS) on your container View (the one that the sliding drawer slides over).

提交回复
热议问题