myinnos / AlphabetIndex-Fast-Scroll-RecyclerView

A Powerful AlphabetIndex FastScroller Library for Android's RecyclerView!
https://myinnos.github.io/AlphabetIndex-Fast-Scroll-RecyclerView/
Apache License 2.0
603 stars 114 forks source link

onBindViewHolder position value not correctly assigning values #43

Open tbarton1197 opened 6 years ago

tbarton1197 commented 6 years ago

I have a function that looks something like the one below

@Override public void onBindViewHolder(@NonNull ProcedureViewHolder holder, int position) { if(position % 17 == 0){
holder.procedureName.setTextColor(context.getResources().getColor(R.color.com_facebook_blue)); } }

and when I run it, the rows that change text color are seemingly random. There are several places where 2 or 3 rows in a row have blue text. For sure there are more than every 17th items whos text is blue