I am trying to use shared element transition on RecyclerView but it doesn\'t seem to work.
This is a part of my adapter in which I use makeSceneTransitionAnimation
In your Adapter
holder.smallThumbnail.setTransitionName("thumbnailTransition");
Pair pair1 = Pair.create((View) holder.smallThumbnail, holder.smallThumbnail.getTransitionName());
ActivityOptionsCompat optionsCompat = ActivityOptionsCompat.makeSceneTransitionAnimation((Activity) mContext, pair1, pair2);
mContext.startActivity(intent, optionsCompat.toBundle());
In Your Detail Activity
getWindow().setSharedElementEnterTransition(TransitionInflater.from(this).inflateTransition(R.transition.shared_element_transation));
mainImage.setTransitionName("thumbnailTransition");
Here this mainimage is imageview where you want to transform your previous activity thumbnail
shared_element_transation create one xml in res>transition