-
Notifications
You must be signed in to change notification settings - Fork 305
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
设置background导致的显示问题 #1
Comments
由于 View 的 drawBackground 方法是私有的,无法重载,所以这个暂时没有想到比较好的解决方案,等我想到了就更新。 |
可以在draw方法中对canvas进行clip操作,这样在设置background就可以生效了 |
发布之前就试过了,无效。 |
@GcsSloop |
clip操作是对canvas的,所以在draw里面进行clip操作是ok的 |
给该布局添加background颜色,该布局还会直接显示直角矩形背景颜色,不过可以通过在该布局内部定义其他布局解决,这个能否直接定义background达到圆角矩形?
The text was updated successfully, but these errors were encountered: