开发者

implement content edge insets button android

This is rather tough for me. I am trying to implemen开发者_开发技巧t the content edge insets feature found in the ios for android button. I believe this enables positioning of the content inside the button based on top, bottom, left and right values. Does anyone have a clue?


Use the attributes:

android:paddingTop
android:paddingBottom
android:paddingLeft
android:paddingRight

This controls the amount of 'empty' space between the border of the button and the text.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜