Open Hitexroid opened 7 years ago
I am also facing same issue have you resolved it ?
have you resolved this issue? I m also facing this.
Hi Sorry about my poor English !
Based on the features of RecyclerView
.
You can get only items that are visible
And in RecyclerViewPager
, because only one item is shown, no other items could be get !
Solution :
so you have to get your item
in your List
at specific position and edit...
yourModel item = itemList.Get(yourPosition);
item.test = "some text";
then :
itemList.set(yourPosition, item);
yourAdapter.notifyItemChanged(yourPosition);
RecyclerView.ViewHolder viewholder = mRecyclerViewPager.findViewHolderForAdapterPosition(Position);