ChangeSkin
ChangeSkin copied to clipboard
继承 baseSkinActivity后 SearchView 不识别?
继承后,这个控件 为null,但在上面已经去找到了,取消继承后,此处没问题
我也遇到这个问题,解决了吗?
@chenkezhao 暂时没有用了
SkinAttrSupport添加判断就好了吧
if (attrValue.startsWith("@")) {
int id = Integer.parseInt(attrValue.substring(1));
if (id != 0) {
String entryName = context.getResources().getResourceEntryName(id);
L.e("entryName = " + entryName);
if (entryName.startsWith(SkinConfig.ATTR_PREFIX)) {
skinAttr = new SkinAttr(attrType, entryName);
skinAttrs.add(skinAttr);
}
}
}