Good one...
By the way, i've been trying to use setBackgroundDrawable() but when i
create the drawable i cant connect it with the respective file path. Can
someone post an example? Somehow i feel like im doing a really dumb
mistake...

Thanks
Cheers

On Thu, May 21, 2009 at 11:02 PM, ht <[email protected]> wrote:

>
> What method(s) should I override in my custom drawable?
>
> 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
> >
>


-- 
Cumprimentos,

Hugo Rafael Augusto

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

Reply via email to