I have a button and a text-view, text-view has a drawable-left. After click on button the drawable-left should be removed and a plain text should be set to Text-view, but I
If you are going to be doing this frequently, adding an extension makes your code more readable
fun TextView.clearDrawables() { this.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0) }
To use the extension, simply call
view.clearDrawables()