Android SlidingDrawer doesn't disable buttons 'under' the drawer

前端 未结 7 1439
深忆病人
深忆病人 2021-01-01 14:15

This is the scenario: I have a button B, and a slidingdrawer that when pulled out covers the entire screen. When I pull out the screen, and touch the screen where B used to

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-01 14:45

    I think you should add a touch listener on slider and return true on it. In that way, you will tell to the system that the touch event has been consumed.

提交回复
热议问题