How can I access drawable by string in a non activity without getting any parameters like Context?
You can try to use ContextCompat.getDrawable or Resources.getSystem().getDrawable() - note this is deprecated
You can try to use ContextCompat.getDrawable or Resources.getSystem().getDrawable() - note this is deprecated