Created
March 20, 2016 22:17
-
-
Save konk3r/01d8b0c6a2557cec8477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void bind(Model model) { | |
if (model.id % 2 == 0) { | |
myLayout.setBackgroundResource(R.drawable.background_01); //works | |
textView.setTextColor(Color.BLACK); | |
} else { | |
myLayout.setBackgroundResource(R.drawable.background_02); //works | |
textView.setTextColor(Color.RED); // it's changing the color of the ones that are not "potato" | |
} | |
textView.setText(model.myText); //works | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment