D
D
Denis2017-05-24 19:01:37
Android
Denis, 2017-05-24 19:01:37

How to swap view in LinearLayout with animation?

Hello. Tell me how to swap views in LinearLayout with animation.
I now swap places through the removeViewAt, addView function. But when trying to add animation before using these actions, I ran into the fact that the view does not go beyond the boundaries of its block, but, as it were, are hidden.
Tried to use the DragAndDrop functions but they only work on touch.
Tell me how to animate a change in the position of a view in a LinearLayout.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2017-05-24
@lacredin

The problem with the animation was that I moved not the view that I added to the LinearLayout, but its children, for this reason the children view was hidden when it reached the border of the parent view.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question