There are actually a lot of dialogs you will see in the base platform that
are implemented this way.  It definitely works.  Having the content behind
go black typically indicates your theme is messed up and telling the system
you have a full-screen UI even though you don't, so it mistakenly thinks it
can free the surface of the activity behind it.

On Sun, Jun 5, 2011 at 10:15 PM, Zsolt Vasvari <[email protected]> wrote:

> I can confirm Theme.Dialog works.  I use it in my own app without any
> issue whatsoever.  The background activity is still visible dimmed.
>
> On Jun 6, 12:55 pm, Qi Luo <[email protected]> wrote:
> > On Mon, Jun 6, 2011 at 12:36 AM, Mark Murphy <[email protected]
> >wrote:
> >
> > > On Sun, Jun 5, 2011 at 12:28 PM, Qi Luo <[email protected]>
> wrote:
> > > > I've tried this, but I didn't figure out how to build a real
> dialog-like
> > > and
> > > > modal activity. Here's 2 issues I ran into,
> > > > 1. I created a dialog-themed activity, but the background of  it was
> > > always
> > > > black, and the main activity under it was totally invisible.
> >
> > >http://android-coding.blogspot.com/2011/05/make-you-app-looked-like-d.
> ..
> >
> > I did try this way, Theme.Dialog style was applied. The above link seemed
> > perfect, but, when it was started as a sub-activity, it showed up at
> center
> > of screen, dialog appearance, but the rest of screen was totally black.
> > Some guys got same problem.
> http://code.google.com/p/android/issues/detail?id=4394
> >
> >
> >
> >
> >
> >
> >
> > > > 2. activity could be started and expect a result back, but there's no
> > > sync
> > > > response.
> >
> > > You don't need "sync response".
> >
> > --
> > > Mark Murphy (a Commons Guy)
> > >http://commonsware.com|http://github.com/commonsguy
> > >http://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > > Android 3.0 Programming Books:http://commonsware.com/books
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en- Hide quoted
> text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to