Thanks Jorge Aguilar for spending the time in debugging the issue. Indeed the culprit to change to is as below.
By having this, my original code of Constraint Layout works too, and without need to animate through the Kotlin code. Just need the
animateLayoutChanges="true" in the ConstraintLayout will do.
Indeed Constraint Layout is a great layout to be explored on. Much to be learnt.