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

当底色本来就是纯白#FFFFFF时 任何切换回纯白的操作都失效 但是改成#FFFFFE没问题 #41

Open
hazyrain opened this issue Apr 14, 2017 · 2 comments

Comments

@hazyrain
Copy link

这个操作包括removeanyskin() 没时间看源码了 先拿#FFFFFE凑活

@yilylong
Copy link

同上 遇见这个bug了只要颜色设置成了白色 ResourceManager. getColor() 就会返回-1 Resources.NotFoundException 郁闷了好久

@yilylong
Copy link

发现问题了 Color.WHITE public static final int WHITE = 0xFFFFFFFF; 好像就是-1;
BACKGROUD("background") {
@OverRide
public void apply(View view, String resName) {
Drawable drawable = getResourceManager().getDrawableByName(resName);
if (null!=drawable){
view.setBackgroundDrawable(drawable);
}else{
int color = getResourceManager().getColor(resName);
if(color==-1){
return ;
}
view.setBackgroundColor(color);
}
}

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

2 participants