I kept running into this problem, and I think I have found the cause. Specifying an activity is a dialog in the manifest, for me, kept causing the background screen to be lost (not all the time - some dialogs would work ok). However, if I made my dialogs via code, Ie: sub-classed Dialog, and in the dialog I call this.getContext().setTheme (R.style.SpecialDialog); Then, so far, it keeps the background screen. Hooray!
On Aug 7, 12:03 am, CraigsRace <[email protected]> wrote: > The parent window had a 120Kb jpeg picture on it. I used more > compression on the jpeg and got it down to 32Kb, and bingo, the parent > window stopped disappearing! Yay me! > > On Aug 6, 10:39 am, CraigsRace <[email protected]> wrote: > > > Hi, > > > I wanted to change the frame around my Dialog. So I set up a style: > > <resources> > > <style name="SpecialDialog" parent="android:Theme.Dialog"> > > <item name="android:windowBackground">@drawable/my_frame</ > > item> > > </style> > > </resources> > > > and assigned it in the manifest: > > <activity android:name=".MyActivity" android:theme="@style/ > > SpecialDialog"> > > > And yay! I get my new frame. However, the parent window disappears > > (goes black). > > > Having a normal dialog: > > <activity android:name=".MyActivity" android:theme="@android:style/ > > Theme.Dialog"> > > keeps the parent window visible. > > > Can I have a custom frame on a dialog and keep the parent window > > visible? > > > Thanks. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

