The dialog is just centered on the screen based on the entire contents. I assume you have some alpha around the edges that make the positioning look off. You just need to have the image designed so that it will visually appeared center for you.
If the red lines are showing the edges of your actual image, then you have something else going on that has nothing to do with the image. On Fri, Apr 1, 2011 at 9:36 AM, 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 > > -- > 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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 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