0

I know that this question is being asked many times, but still i was not able to find solution.

Well we all know that Lollipop Shared Elements transitions only work with lollipop devices, but the recent update to Gmail app has the same animation effect in pre-lollipop(i guess starting from 4.1).

The same effect is the Yplan app as well.

How to achieve that ? i guess they are using the Shared Elements transitions

user2056563
  • 600
  • 2
  • 12
  • 37
  • The official API does not provide any automatic "shared element transition" API for devices below Lollipop. Gmail and other apps may be using the approach described [here](https://www.youtube.com/watch?v=CPxkoe2MraA) to achieve a similar effect though. – Alex Lockwood Apr 28 '15 at 04:47

2 Answers2

1

You dont get official "shared element transition" API below lollipop so only thing you can do is manually implement it.

  1. You can also use this open source library.
  2. This is second open source library which works for 2.2+.
Sam
  • 1,237
  • 1
  • 16
  • 29
1

You can check out this library for activity and fragment transitions for pre lollipop devices

dependencies {
    compile 'com.albinmathew:PreLollipopTransition:1.1.2'}

https://github.com/albinmathew/PreLollipopTransition

Albin Mathew
  • 411
  • 1
  • 6
  • 13