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


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

Reply via email to