0

I have a custom view, that I replace with different view. Part of the elements on the new view are connected. Like the user image.

I want to use the same animation effect as in Lollipop activities transition between my views. Is there any way to achieve this?

Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
  • You should use either Scene class or use any of the Animators. – Nikola Despotoski Dec 09 '14 at 20:46
  • Just use the `Transition` framework that was introduced in API 19? – Alex Lockwood Dec 09 '14 at 22:14
  • If your custom View is a ViewGroup that behaves normally, the Transition framework should work just fine (ChangeBounds, Fade, etc). If your custom View draws the UI specially, then those special parts won't work well with the Transition framework. If you can contain the special drawing in separate Views, contained in a ViewGroup (could be custom), the Transition Framework should be able to handle that. – George Mount Dec 10 '14 at 00:59

0 Answers0