I have to use `android:animateLayoutChanges` in ko...
# codingconventions
p
I have to use
android:animateLayoutChanges
in kotlin code, but couldn’t find any related fields there So I created an extension property:
Copy code
var ViewGroup.animateLayoutChanges: Boolean
  get() = layoutTransition != null
  set(value) {
    layoutTransition = if (value) LayoutTransition() else null
  }
Is this one okay, or could there be any other alternatives for this?