Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get drawable from string android

Context context = imageView.getContext();
int id = context.getResources().getIdentifier("picture0001", "drawable", context.getPackageName());
imageView.setImageResource(id);
 
PREVIOUS NEXT
Tagged: #drawable #string #android
ADD COMMENT
Topic
Name
1+6 =