Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

set drawableleft programmatically android

Drawable img = getContext().getResources().getDrawable(R.drawable.smiley);
img.setBounds(0, 0, 60, 60);
txtVw.setCompoundDrawables(img, null, null, null);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #drawableleft #programmatically #android
ADD COMMENT
Topic
Name
2+7 =