I'm trying to replicate a recycler view visual effect in a linear layout, where views transition to their new position with animation if a view in the list has expanded. I have some predefined custom views (the view extends LinearLayout class, in XML I fill them with additional views, I just haven't figured out a way of doing it through a list, that would be more practical than the linear layout option), which I add in XML to a linear layout with vertical orientation. When a view inside the layout changes its size, views move to their new position instantly. Is there a way to animate this effect in linear layout? Desired effect Current effect
2.1m questions
2.1m answers
60 comments
57.0k users