Thanks, that was it. Not all the 9 patches in the stack were set up correctly.

-- Ward


>Hi,
>
>Your 9patch might contain a very large padding area. You should check
>it out in the draw9patch tool and make sure the content area is large
>enough.
>
>On Wed, Dec 17, 2008 at 4:59 PM, Ward Willats <[email protected]> wrote:
>>
>>  It seems as though if I set the background to a stateful drawable in
>>  the View of a Button/TextView, gravity breaks.
>>
>>  That is, I have a Button with a 9-patch background I would like to
>>  write the button label on. If I set
>>  "center_vertical|center_horizontal" without the background, the label
>>  is centered in the view/button. If I add the background, the label
>>  floats to the top of the view (but is still centered horizontally).
>>
>>  This seems like an idiot mistake on my part, but I'm not seeing the
>>  error in my code, so thought I'd ask you folks if this is a known
>>  side-effect.
>>
>>  (The buttons themselves are in a horizontal linear layout with
>>  center/center gravity.)
>>
>>  -- Ward
>>
>>
>>  >
>>
>
>
>
>--
>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
>
>

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