I noticed several inaccuracies within your RecyclerView blog post which are reflected in this sample's code.
AnimalDetailActivity TransitionName
Transition names on the views don't have to be the same on both ends of the transition. They have to be unique for their own view hierarchy though and be matched within makeSceneTransitionAnimation. See this for an example.
In RecyclerViewActivity: The ActivityOptionsCompat call can be simplified by applying the suggestion of 1.
The AnimalItemClickListener's parameter transitionName can be removed when following through with the suggestions so far.
You're removing the transition in the ViewPagerFragment on the way back to the RecyclerView.
There is a better way: When using onActivityReenter you can postpone a transition and remap views.
keyboardsurfer commentedFeb 27, 2017
I noticed several inaccuracies within your RecyclerView blog post which are reflected in this sample's code.
Transition names on the views don't have to be the same on both ends of the transition. They have to be unique for their own view hierarchy though and be matched within makeSceneTransitionAnimation. See this for an example.
transitionName
can be removed when following through with the suggestions so far.There is a better way: When using onActivityReenter you can postpone a transition and remap views.
These suggestions can also be applied within the recycler_view_to_fragment example.
Source: I wrote this.
The text was updated successfully, but these errors were encountered: