What method(s) should I override in my custom drawable?
On May 20, 11:29 am, Romain Guy <romain...@google.com> wrote:
> Write a custom drawable to do this.
>
> On Tue, May 19, 2009 at 4:12 PM, ht <harristea...@gmail.com> 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
> romain...@android.com
>
> 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 android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---