You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
页面设置:
android:tag="skin:skin_colorPrimary:background"
android:background="@color/skin_colorPrimary"
报错:
No package identifier when getting value for resource number 0x00000000
...........................
at com.zhy.changeskin.attr.SkinAttrType$1.apply(SkinAttrType.java:23)
指向:
Drawable drawable = getResourceManager().getDrawableByName(resName);
没有找到资源
The text was updated successfully, but these errors were encountered:
"No package identifier when getting value for resource number 0x00000000" - This is warning when id resource equal 0. If you want not to out warning you can check id resource, for example:
public Drawable getDrawableByName(String name) {
try {
int id = mResources.getIdentifier(name, "drawable", mPluginPackageName);
return id == 0 ? getDrawable(name) : mResources.getDrawable(id);
} catch (Exception e) {
return getDrawable(name);
}
}
页面设置:
android:tag="skin:skin_colorPrimary:background"
android:background="@color/skin_colorPrimary"
报错:
No package identifier when getting value for resource number 0x00000000
...........................
at com.zhy.changeskin.attr.SkinAttrType$1.apply(SkinAttrType.java:23)
指向:
Drawable drawable = getResourceManager().getDrawableByName(resName);
没有找到资源
The text was updated successfully, but these errors were encountered: