Some more info The text is perfectly centered (but tiny) if I lave it at the default setting. If I try to scale it up to match the button size however I lose vertical centering :(
Ive tried looking at the drawing code but it is massively complex. Anyone know a soln? On Nov 10, 10:37 am, CyberQat <[email protected]> wrote: > Hi Guys, > > Ive just started fooling around with programming my Motorola Droid. > I'm programmatic ally laying out an interface such that the text > contained in my Button is sized at layout time to fit the button. My > questions are: > > (1) I know the pixel size of the button, what is the best way to set > the text size to fit the button size? > (2) I can't seem to get it to center. I've tried a Gravity of 11 and > that helps, but ist still not right. How do I get my text to center > itself properly horizontally and vertically in the button? > > Thanks -- 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

