In Android Kotlin you can change the Button tint programmatically like--
I am using the Jetpack View binding..
binding.imgEdit.backgroundTintList= ContextCompat.getColorStateList(context, R.color.green)