Every time i search i came across this " android 5(L) activity transition only available on API >= 21
.
that's fine but i can see some app like QuickPic
and google inbox
that use similar transition and also working on lower api, so how this app can do such a thing?
what i have done?
1) a lot of search:)
2) playing with ActivityOptionsCompat
that only apply to api >= 21, like this:
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, transitionView, DATA.EXTRA_PASSED_JSON);
Intent intent = new Intent(activity, PhotoViewerActivity.class);
intent.putExtra(DATA.EXTRA_PASSED_JSON, json);
ActivityCompat.startActivity(activity, intent, options.toBundle());
EDIT(question marked as duplicate): it's different from other question in this case, because i said there is other app that do this transition in lower api and i want to know how they do that.