Android Studio - access drawable by string in a non activity?

51 views Asked by At

How can I access drawable by string in a non activity without getting any parameters like Context?

1

There are 1 answers

0
Djaf On

You can try to use ContextCompat.getDrawable or Resources.getSystem().getDrawable() - note this is deprecated