How to get view from RecyclerView at specific adapter position and get values from those views?
问题 I have RecyclerView having an ImageView and a TextView for each row layout.In ViewHolder in RecyclerViewAdapter, I have click listener as v.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Images i=list.get(getAdapterPosition()); i.setFlag(!i.getFlag()); list.set(getAdapterPosition(),(i)); notifyDataSetChanged(); } }); In that click listener I am changing Boolean flag such that it can show either an item is selected or not. Depending on it's value I want