android - How to disable background screen -
i have linearlayout set inside oncreate() method setcontentview(), creating popup @ runtime in same activity linearlayout b, popup placed bottom of screen/activity, want to disable background screen no touch/tap/click work.
how can that.
thanks
this how it... recommend make root of layout relativelayout, put linearlayout inside that. linearlayout b should full size of screen , have 2 views inside (a top , bottom). bottom view popup using. top basic view has background color set black .25 (or .1) alpha on it's entirely see through.
when want display popup (and disable interaction controls outside of popup), add linearlayout b relative layout attached top left (i.e. b should cover a). user able interact popup controls @ bottom , still able see linearlayout through transparent top portion of layout b, since grayed out user know aren't allowed interact it... , prevented interacting because overlay view block interaction.
Comments
Post a Comment