如何在非活动中通过字符串访问drawable而不获取诸如Context之类的任何参数? 最佳答案 您可以尝试使用ContextCompat.getDrawable要么Resources.getSystem()。getDrawable()-注意此方法已弃用