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