We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
通过
shadowView.setBackgroundClr(Color.BLACK);
设置背景颜色无效,设置背景没有更新画笔颜色
private fun updateBackgroundClr(bgColor:Int){ //起作用 bgPaint.color=bgColor invalidate() }
The text was updated successfully, but these errors were encountered:
具体怎么改源码啊.. 我下载了zip包,编辑后尝试重新导入,但总是没法正常使用
Sorry, something went wrong.
@elmliu 在 ShadowView 的 41-46 行
var backgroundClr: Int = 0 set(value) { field = value invalidate() }
将 invalidate() 替换成我上面的 updateBackgroundClr(field) 方法就可以了
No branches or pull requests
通过
设置背景颜色无效,设置背景没有更新画笔颜色
The text was updated successfully, but these errors were encountered: