I was implementing material design for my app. I saw that it is possible to make transitions between activities just here: http://android-developers.blogspot.com.es/2014/10/implementing-material-design-in-your.html
So i tried to follow what "Authentic motion" section says:
ActivityMain.java
Intent intent = new Intent();
String transitionName = getString(R.string.transition_album_cover);
…
ActivityOptionsCompat options =
ActivityOptionsCompat.makeSceneTransitionAnimation(activity,
albumCoverImageView, // The view which starts the transition
transitionName // The transitionName of the view we’re transitioning to
);
ActivityCompat.startActivity(activity, intent, options.toBundle());
activity_main.xml
<ImageView
…
android:transitionName="@string/transition_album_cover" />
activity_details.xml
<ImageView
…
android:transitionName="@string/transition_album_cover" />
However, this seems to make the default android activity transition, and I see no animations.
Keep in mind that I called requestWindowFeature(Window.FEATURE_CONTENT_TRANSITIONS) as it says here http://developer.android.com/reference/android/support/v4/app/ActivityOptionsCompat.html#makeSceneTransitionAnimation(android.app.Activity, android.view.View, java.lang.String)
Also all this was tested with a Nexus4 API Level 19
Where is the problem?