微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在Android Studio中调整向量中的圆半径?

如何解决如何在Android Studio中调整向量中的圆半径?

以下代码是矢量资产,矢量资产显示两个圆圈,就像图像A。

我希望增加内圆的半径,如何修改代码

顺便说一句,我认为代码android:pathData="M53,52m-20,0a20,20 0,1 1,40 0a20,-40 0"是内圆的数据,我知道哪个数据是圆的半径。

代码

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="104dp"
    android:height="104dp"
    android:viewportWidth="104"
    android:viewportHeight="104">
  <path
      android:pathData="M52,52m-50,0a50,50 0,100 0a50,-100 0"
      android:strokeLineJoin="round"
      android:strokeWidth="3.5"
      android:fillColor="#FFFFFF"
      android:strokeColor="#8E8E93"
      android:fillType="evenOdd"
      android:strokeLineCap="round"/>
  <path
      android:pathData="M53,-40 0"
      android:strokeLineJoin="round"
      android:strokeWidth="3.5"
      android:fillColor="#FF3830"
      android:strokeColor="#FF3830"
      android:fillType="evenOdd"
      android:strokeLineCap="round"/>
</vector>

图片A

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。