Answers for "set margin programtically kotlin android"

0

set margin programtically kotlin android

val param = btnClickMe.layoutParams as ViewGroup.MarginLayoutParams
param.setMargins(10,10,10,10)
btnClickMe.layoutParams = param // Tested!! - You need this line for the params to be applied.
Posted by: Guest on February-02-2022

Code answers related to "set margin programtically kotlin android"

Browse Popular Code Answers by Language