Tom H
0
Q:

get drawable with string android java

Context context = imageView.getContext();
int id = context.getResources().getIdentifier("picture0001", "drawable", context.getPackageName());
imageView.setImageResource(id);
0

New to Communities?

Join the community