[android] How to add button tint programmatically

here's how to do it in kotlin:

view.background.setTint(ContextCompat.getColor(context, textColor))