gpt4 book ai didi

android - 不支持 Path.isconvex。 Android Studio 中的渲染问题

转载 作者:太空宇宙 更新时间:2023-11-03 12:15:41 28 4
gpt4 key购买 nike

我正在创建一个安卓应用,并且我添加了一些切换按钮、编辑文本,并且还在其中动态添加了 fragment 。但是在Android studio中预览布局时,显示了这个警告:

The graphics preview in the layout editor may not be accurate : - Path.isconvex is not supported.

最佳答案

如果你在这样的地方有圆角

<corners
android:topLeftRadius="10dp"
android:topRightRadius="10dp"
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"/>

尝试将其替换为:

<corners android:radius="10dp" />

目前似乎不支持不同半径的角。

关于android - 不支持 Path.isconvex。 Android Studio 中的渲染问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37270587/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com