Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

继承 baseSkinActivity后 SearchView 不识别? #20

Open
275873859 opened this issue Sep 8, 2016 · 3 comments
Open

继承 baseSkinActivity后 SearchView 不识别? #20

275873859 opened this issue Sep 8, 2016 · 3 comments

Comments

@275873859
Copy link

image
继承后,这个控件 为null,但在上面已经去找到了,取消继承后,此处没问题

@chenkezhao
Copy link

我也遇到这个问题,解决了吗?

@275873859
Copy link
Author

@chenkezhao 暂时没有用了

@zouyuanfeng
Copy link

zouyuanfeng commented Apr 6, 2017

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);
                }
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants