There's a setPadding(left, top, right, bottom) but is there a way to dynamically add a margin value to a button in android?
Asked
Active
Viewed 661 times
1 Answers
2
I think this is answered here Set margins in a LinearLayout programmatically
It uses layoutParams
and layoutParams.setMargins