Shared element transition in RecyclerView : <p>I am trying to use shared element transition on RecyclerView but it doesn't seem to work.</p>

<p>This is a part of my adapter in which I use <code>makeSceneTransitionAnimation()</code> :</p>

<pre><code>public void onBindViewHolder(final BookViewHolder holder, final int position) {
        holder.itemView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(context, DetailsActivity.class);
                ActivityOptionsCompat optionsCompat = ActivityOptionsCompat.makeSceneTransitionAnimation((Activity)context , holder.smallThumbnail, "thumbnailTransition");
                context.startActivity(intent, optionsCompat.toBundle());
            }
        }
}
</code></pre>
