在遇见 The method getResources() is undefined for the type XX 是因为 在非activity中找不到可以传递的caves
现在需要在类里面 建立个 Context 然后getResources()
private Context mContext;
mContext.getResources.....
在遇见 The method getResources() is undefined for the type XX 是因为 在非activity中找不到可以传递的caves
现在需要在类里面 建立个 Context 然后getResources()
private Context mContext;
mContext.getResources.....