I want to update the recyclerview adapter item's textview value dynamically with some data.
For that i'm doing this way:
View mRecyclerView = linearLayoutManager.getChildAt(viewPosition);
TextView textView=(TextView) mRecyclerView.findViewById(R.id.text_number);
Integer chatCount = Integer.parseInt(textView.getText().toString());
chatCount++;
textView.setText(chatCount + "");
jobsFragmentRecyclerViewAdapter.notifyItemChanged(viewPosition);
But the above coding is working only for visible views on the screen, For the views that are not visible i'm getting a null pointer exception for mRecyclerView
can anyone help me on how to get the recyclerview item that is not in focus
Thanks in advance