Saturday, April 2, 2011

[android-developers] Re: dialog placement

Could I ask how you got the transparent area at the top and left? I
have tried this custom dialog and I get a white border around my
view. Is it the "use windowBackground" idea? What object are you
setting with that attribute? Is it the Dialog?

On Apr 1, 12:36 pm, pskink <psk...@gmail.com> wrote:
> hi,
>
> i want to create a dialog with custom background. in order to do that i use
> "windowBackground" style pointing to my 9-patch drawable.
>
> the problem is that 9-patch drawable is a big rectangular area with some
> "icon" on the top-left position and when i use it i get dialog which is
> centered within entire bounds (see *have_it.png* image, the thin red line
> outlines dialog bounds)
>
> what i'd like to get is *want_it.png* image. i tried to play with 9-patch
> "padding" lines (the bottom & right black lines) but it doesn't help.
>
> what is possible solution for this? maybe InsetDrawable?
>
> thanks
> pskink
>
>  have_it.png
> 92KViewDownload
>
>  want_it.png
> 92KViewDownload

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate