Answers for "drawable from string android"

1

get drawable with string android java

Context context = imageView.getContext();
int id = context.getResources().getIdentifier("picture0001", "drawable", context.getPackageName());
imageView.setImageResource(id);
Posted by: Guest on June-22-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language