Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
162 views
in Technique[技术] by (71.8m points)

java - Make child views move with animation when a view in a vertical linear layout expands

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

question from:https://stackoverflow.com/questions/66049900/make-child-views-move-with-animation-when-a-view-in-a-vertical-linear-layout-exp

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...