I want to change respective image of clicked item in recycler view. Now whats happening is if i click on item 2 image is changing at random item position in the list
<
in onBindViewHolder
add following code:
testImage.setTag(holder);
then, in onClick add this code to change image:
MyRecyclerViewAdapter.DataObjectHolder yourHolderObj = (MyRecyclerViewAdapter.DataObjectHolder)((ImageView)itemView.findViewById(R.id.logo)).getTag();
yourHolderObj.testImage.setImageResource(R.drawable.video_icon_fill);