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
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