Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android imageview set image from drawable programmatically

In XML :
    android:background="@drawable/imagename 
    android:src="@drawable/imagename"
    
In Code :
	imageview.setImageResource(R.drawable.imagename);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #imageview #set #image #drawable #programmatically
ADD COMMENT
Topic
Name
5+9 =