开发者

implement content edge insets button android

开发者 https://www.devze.com 2023-03-19 07:17 出处:网络
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 b

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

精彩评论

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