Sunday, June 13, 2010

Re: [android-developers] Make entire screen disabled

On Sat, Jun 12, 2010 at 4:39 AM, pawan nimje <pawannimje@gmail.com> wrote:
thats ok .. i have tried that .. thats working ... but wat i want is the screen to look in background ...i.e i want the entire activity screen to look as if its in the background ( how an sctivity screen looks when theres dilog box above it) ... hope u r getting wat im trying to say ...

Um...  then open a dialog?

If you just want to dim out the entire activity like dialog does, you can do somethung like that by for example implementing dispatchDraw() at the root to draw a transparent dark layer on top.  Or creating a full-screen transparent window that is dark and not fully opaque.  Or just open a Dialog (or window with the layout params set up like a dialog) that does this.

--
Dianne Hackborn
Android framework engineer
hackbod@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment