I just took the original image from the android assets folder, changed
the color, and save it out in photoshop. If it weren't set to 0, then
wouldn't it also be opaque on 1.6+ ?
Someone recommended I try this:
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.dimAmount=0.2f;
getWindow().setAttributes(lp);
in the dialog onCreate() method. Gave it a shot, but no effect on 1.5
either. Works perfectly on 1.6+. I think there's something wrong with
1.5.
Any ideas?
Thanks
On Mar 11, 11:36 am, ivar wrote:
> While changing the color of the panel, did you set the alpha value to
> FF? 0 gives you full transparency and FF gives you total opacity.
>
> Hope this helps.
> Ivar
>
> On Mar 11, 8:37 pm, Mark Wyszomierski wrote:
>
>
>
> > Hi,
>
> > I'm trying to supply my own background drawable for a dialog. It works
> > fine on 1.6+, on 1.5 though instead of a transparent dimmed background
> > around the dialog, I just get opaque black. I defined the style like
> > this in my styles.xml file:
>
> >
> > - @drawable/my_background
> > item>
> >
>
> > Is there something else we need to do so that we can still get the
> > transparency around the dialog? The drawable is nothing special, I
> > just took the stock one from the aop and changed the color on the
> > inside of the frame.
>
> > Thanks
--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en