开发者

how to set text in button with image in center - android?

I have a button with inage in background and I set text for the button on the right of t开发者_JS百科he image, how to set the text verticaly ??


For XML you'll need the android:gravity property, in code it would be TextView.setGravity() you're after.


Android:gravity in the XML. Set it to "center" link text

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜