See source https://github.com/suchoX/DraggableView
Version androidx.constraintlayout:constraintlayout:2.0.0-rc1
Views with attr gone
(for ex. button next_image_view
) are going from the bottom. It is correct. See screen shot
But if update to Version androidx.constraintlayout:constraintlayout:2.1.0
:
The view is going from top-left
How to fix it?
The basic problem is ConstraintLayout gone ends up at 0,0 size 0,0.
There are two possible solutions.
The first fades in the transition to invisible then transitions to Gone. You can AutoTransition to the second gone.
The Second says 0 movement till you hit the last 1% by which time the they are invisible.