Answers for "how to get drawble with 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 "how to get drawble with string android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language