Why don't you just edit your 9patch image to remove the padding that you put in there?
On Sat, Feb 6, 2010 at 10:15 AM, Mark Nuetzmann <mark.nuetzm...@gmail.com> wrote: > I have a LinearLayout that I set a background to a 9-patch drawable. > It appears that the LinearLayout is somehow forcing its contents to > display within the center space defined by its background. This is > really creating problems as the content is being "scrunched" or > compressed to a much smaller space that what I anticipated. I do not > have any margins or padding set on the LinearLayout so I know the only > place it could be getting this is from the background. All I wanted > was for the background to be a background and not some how contribute > to how the LinearLayout laid out its views. Is there a way to tell > the LinearLayout NOT to pull sizing information from its background? > I see that the class NinePatchDrawable has a getPadding() but NO > setPadding(). I assume that the LinearLayout is getting the padding > from NinePatchDrawable and using that to contrain the contents of the > layout to a smaller area. Can I override this without subclassing > this class? > > Regards, > Mark > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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 Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en