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);
 
PREVIOUS NEXT
Tagged: #android #imageview #set #image #drawable #programmatically
ADD COMMENT
Topic
Name
7+6 =