In the new AppCompat library, we can tint the button this way:
here's how to do it in kotlin:
view.background.setTint(ContextCompat.getColor(context, textColor))