I wanted to setup a shared element transition when going from one Activity to another.
The first Activity has a RecyclerView with items. When an item is clicked that it
As @Fabio Rocha said, make sure that the itemView is retrieved from the ViewHolder.
itemView
ViewHolder
You can get the ViewHolder by position via
mRecyclerView.findViewHolderForAdapterPosition(position);