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

Posted by Sara on Stack Overflow See other posts from Stack Overflow or by Sara
Published on 2010-04-07T23:20:10Z Indexed on 2010/04/07 23:23 UTC
Read the original article Hit count: 500

Filed under:
|
|
|

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 click on items, buttons and other elements in the view that is behind the SlidingDrawer. When SlidingDrawer is active/pulled up/in focus, I want to disable the entire view behind it so it will not be able to recieve clicks and touches. Is there a good way to disable an entire view? I have tried setEnable(false) and setClickable(false) but neither of them work.

Help?

© Stack Overflow or respective owner

Related posts about android

Related posts about slidingdrawer