I'm trying to change the button color using this line of code: button.setTextColor(R.color.erik_secundario)
But it doesn't work. So I also read about using that:
getResources().getColor(R.color.example_color)
And the problem is that i don't know where i need to implement that code to solve the problem.
Thanks!