[Solved] Change drawable color on button on click
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 solved Change drawable color on button on click