getColor(int id)在Android 6.0 Marshmallow(API 23)上弃用?
该Resources.getColor(int id)方法已被弃用。
@ColorInt
@Deprecated
public int getColor(@ColorRes int id) throws NotFoundException {
return getColor(id, null);
}
我要怎么做?
相似问题