Thanks. Has anyone already done this (or something similar)? If so and you are willing to share, I'd appreciate the help.
On May 20, 11:29 am, Romain Guy <[email protected]> wrote: > Write a custom drawable to do this. > > On Tue, May 19, 2009 at 4:12 PM, ht <[email protected]> wrote: > > > I'd like to use setBackgroundDrawable() to set a background, but > > prevent image stretching. The behavior I'm looking for is to draw the > > image with either no scaling, or scaling to fit the image without > > changing the aspect ratio. Any remaining area would be colored with > > the background color (from setBackgroundColor). > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. 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 Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

