On Mon, Nov 30, 2009 at 11:15 PM, mingkg21 mingkg21 <[email protected]>wrote:

> styles.xml:
>
> <style name="Dialog_Fullscreen">
> <item name="android:windowFullscreen">true</item>
>  <item name="android:windowNoTitle">true</item>
> </style>
>

Er.  That is really really broken.  First, this theme doesn't inherit from
any base system theme (via the parent attr), so it is not in fact a theme.
 Second, even if it did, that the additional data here would be doing
is telling the system it is fullscreen when it isn't.  That means it could
decide to hide windows behind this, even though they are visible behind a
dialog, because you said it could.

If you want a full-screen window, use one of the themes that is fullscreen
-- such as android.R.style.Theme.

If you want a custom dialog theme, please follow the example in API demos:

    <!-- A theme for a custom dialog appearance.  Here we use an ugly
         custom frame. -->
    <style name="CustomDialog" parent="android:style/Theme.Dialog">
        <item name="android:windowBackground">@drawable/filled_box</item>
    </style>

-- 
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