PDA

View Full Version : how to center the button text?



linuxyf
11 Dec 2011, 7:31 PM
i want to make the button text display in the center of button with spicified width, how to do?

rdougan
11 Dec 2011, 11:54 PM
It should do that already?

http://f.cl.ly/items/0V2m0A1w2p1R0E360P0D/Screen%20Shot%202011-12-11%20at%2011.53.52%20PM.png

linuxyf
12 Dec 2011, 12:41 AM
oh, i'm wrong, should use setText instead of setHtml