How to animate floating action button using android activity transition?

后端 未结 2 1335
南笙
南笙 2020-12-04 06:26

I am planning to implement something like this in one of my project but the concept for the following is unclear to me, there\'s no such tutorial available either, moreover

2条回答
  •  死守一世寂寞
    2020-12-04 07:03

    I think what you're looking for are Meaningful Transitions.

    In pre-lollipop devices this can be achieved with ActivityOptionsCompat helper.

    Some useful links that might help you:

    • a simple material design tutorial (with source code) which uses ActivityOptionsCompat for transitions.
    • Transitions example on the Android Developrs blog (scroll down a bit).
    • Defining Custom Animations in the Android Developers training
      guide

提交回复
热议问题