开发者

Add margin to Button in activity

开发者 https://www.devze.com 2023-03-05 03:55 出处:网络
There\'s a setPadding(left, top, right, bottom) but is there a way to dynamica开发者_运维问答lly add a margin value to a button in android?I think this is answered hereSet margins in a LinearLayout pr

There's a setPadding(left, top, right, bottom) but is there a way to dynamica开发者_运维问答lly add a margin value to a button in android?


I think this is answered here Set margins in a LinearLayout programmatically

It uses layoutParams and layoutParams.setMargins

0

精彩评论

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

关注公众号