Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onBindViewHolder position value not correctly assigning values #43

Open
tbarton1197 opened this issue Sep 20, 2018 · 0 comments
Open

onBindViewHolder position value not correctly assigning values #43

tbarton1197 opened this issue Sep 20, 2018 · 0 comments

Comments

@tbarton1197
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant