I have a button with icon and text inside.
<Button
...
android:drawableStart="@drawable/my_button"
android:text="ABC"
...
/>
I would like to change icon from code if condition exists.
if (condition)
setIcon1()
else
setIcon2()
It has to be a button otherwise the layouts will split up.