But the Drawable class does not have a setGravity method... only the
Layout classes have setGravity method.

I am setting the background of a ListView.

On Nov 15, 11:07 am, Romain Guy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Just set the drawable's gravity to Gravity.CENTER for instance.
>
> On Sat, Nov 15, 2008 at 10:29 AM, j <[EMAIL PROTECTED]> wrote:
>
> > I am calling setBackgroundDrawable(Drawable d) and it always scale (by
> > shrinking) my background image to fit the screen (my drawable is
> > big).  How do I make it just crop out the proper size from my drawable
> > instead?
>
> --
> Romain Guywww.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to