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.
精彩评论