[Solved] Change drawable color on button on click

[ad_1]

Drawable img = getContext().getResources().getDrawable( R.drawable.smiley );
img.setBounds( 0, 0, 60, 60 );
txtVw.setCompoundDrawables( img, null, null, null );

With this code, you can change a left drawable programatically.

For the text color, please see Android documentation

[ad_2]

solved Change drawable color on button on click