Figured it out - mAlert.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.fifth));
beautiful. Thanks for this idea On Apr 2, 4:26 pm, Nick Longinow <[email protected]> wrote: > 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 <[email protected]> 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- Hide quoted text - > > - Show quoted text - -- 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

