How to animate FAB (expand) to a new activity

What I would like to achieve is the effect:

enter image description here

Is it possible to achieve something using ActivityOptionsCompat or are there other options? How can I reproduce an effect like FAB, β€œexpanding” to a new Activity ?

+5
source share
1 answer

These animations are associated with material designs called

Common elements between actions.

The idea behind this is to have two different representations in two different layouts and somehow connect them to the animation.

The Transition framework will then make any animations that, in his opinion, should show the user the transition from one view to another.

Always keep this in mind: the view will not move from one layout to another. These are two independent opinions.

enter image description here

The animation between the views will look like

enter image description here

Check this box for more information on material design.

+4
source

Source: https://habr.com/ru/post/1242604/


All Articles