I've read answers of this question, but I still don't get it. For example, I do this:
val params = textOptions.layoutParams as ConstraintLayout.LayoutParams
params.bottomToTop = ConstraintLayout.LayoutParams.UNSET
params.bottomToBottom = 0
and my changes apply immediately, without setLayoutParams. But if I use it in some listener, then It's not always applied immediately without layoutParams method. So, when exactly should I use layoutParams and Is it better(for kotlin) to use updateLayoutParams?