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
在模拟器上不会有任何问题(如下,左侧效果,右侧代码):
真机:
真机型号: 小米 Mix2 OS:MIUI 10 8.8.14 开发版
The text was updated successfully, but these errors were encountered:
有趣的是,如果圆角大于0.3就能正确填充背景。但实际并不需要圆角效果。 发现此问题的过程: 1.真机调试,发现部分效果无效,显示空白。 2.Demo中的Label示例能正常显示。 3.复制Lablel中的属性到不能正常显示的元素中。能显示。 4.修改部分属性,直到能显示。发现圆角大于0.3才能填充背景。
Sorry, something went wrong.
borderRadius的单位不是小数,应该是整数,上面的例子你要用borderRadius: 20
至于borderRadius < 0.3 在android的一些机器为啥显示不出来背景,我还得查一下(我怀疑和浮点数运算有关)。。。 iOS下是没问题的
我本来是不需要borderRadius的,但设置为0,背景也不会渲染,为了能够渲染,我不得不把borderRadius设置为0.3以使边框效果尽量看不出来。
No branches or pull requests
在模拟器上不会有任何问题(如下,左侧效果,右侧代码):
![image](https://user-images.githubusercontent.com/7514524/44132778-46f6d628-a08e-11e8-9433-ecadcc31eac1.png)
真机:
![image](https://user-images.githubusercontent.com/7514524/44132799-7669747e-a08e-11e8-8b75-f6be716f7308.png)
真机型号:
小米 Mix2
OS:MIUI 10 8.8.14 开发版
The text was updated successfully, but these errors were encountered: