RecyclerView first and last item are changed, when clicking only one
问题 I'm using a recyclerview to display a list of interests one could choose from. Clicking the very first item makes the very last item also selected Selecting first item: Last item is also selected: The selection is done with this code: @Override public InterestViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { TextView v = (TextView) LayoutInflater.from(parent.getContext()) .inflate(R.layout.interests_textview, parent, false); v.setOnClickListener(new View.OnClickListener() {