0

There's a setPadding(left, top, right, bottom) but is there a way to dynamically add a margin value to a button in android?

Vincent
  • 6,058
  • 15
  • 52
  • 94

1 Answers1

2

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

It uses layoutParams and layoutParams.setMargins

Community
  • 1
  • 1
chris
  • 1,172
  • 12
  • 15