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

无法动态改变画笔颜色,setPenColor无效 #3

Open
zhugscn opened this issue Feb 20, 2019 · 0 comments
Open

无法动态改变画笔颜色,setPenColor无效 #3

zhugscn opened this issue Feb 20, 2019 · 0 comments

Comments

@zhugscn
Copy link

zhugscn commented Feb 20, 2019

您好。MainActivity.java中,修改以下代码

        case R.id.pen:
            v.setSelected(true);
            mEraserView.setSelected(false);
            mPaletteView.setPenColor(0xffff0000);//新加的代码,设置成红色。丝毫不起作用
            mPaletteView.setMode(PaletteView.Mode.DRAW);
            break;
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

1 participant