Greum
Well-Known Member
I'm trying to change the top margin of a textView (within a constraint view if that makes a difference). I tried the following:
MarginLayoutParams p = (MarginLayoutParams) textView38.getLayoutParams();
p.topMargin = 0;
however, the second MarginLayoutParams gives an error: Cannot resolve symbol.
Can anyone point me in the right direction?
MarginLayoutParams p = (MarginLayoutParams) textView38.getLayoutParams();
p.topMargin = 0;
however, the second MarginLayoutParams gives an error: Cannot resolve symbol.
Can anyone point me in the right direction?