Animation between Activities and shared views: glitchy/hack at the ends of animation? Animation between Activities and shared views: glitchy/hack at the ends of animation? android android

Animation between Activities and shared views: glitchy/hack at the ends of animation?


The problem is that you are trying to animate a TextView's size as a shared element using a ChangeBounds transition. This will not work because of the way ChangeBounds works. The ChangeBounds transition analyzes the layout bounds of a view at the start and end of the transition and animates between the two. ChangeBounds works for arbitrary views, so it will not call setTextSize() on your TextView during the transition for you... this is something you would need to do yourself using a custom transition if you wanted to see the TextView's size seamlessly increase/decrease during the animation. There is some information on how to do this in this StackOverflow answer.