我需要一个弧形矢量,我可以锚定在工具栏的底部,使它看起来像这样:
https://androidexample365.com/content/images/2018/12/ArcLayout.jpg
图片来自android示例365
非常感谢任何有帮助的人。
这是您需要的自定义折叠工具栏的弧矢量
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="500dp"
android:height="500dp"
android:viewportWidth="500"
android:viewportHeight="500">
<path
android:fillColor="#000000"
android:fillAlpha="0"
android:strokeColor="#000000"
android:strokeWidth="1"
android:pathData="" />
<path
android:fillColor="#000000"
android:fillAlpha="0"
android:strokeColor="#000000"
android:strokeWidth="1"
android:pathData="" />
<path
android:fillColor="#389282"
android:strokeWidth="1"
android:pathData="M185.94 399.69C268.86 381.15 373.54 400.53 500 457.84L500 500L0 498.71L0 457.84C41.04 437.61 103.02 418.23 185.94 399.69Z" />
<path
android:fillColor="#000000"
android:fillAlpha="0"
android:strokeColor="#389282"
android:strokeWidth="1"
android:pathData="M185.94 399.69C268.86 381.15 373.54 400.53 500 457.84L500 500L0 498.71L0 457.84C41.04 437.61 103.02 418.23 185.94 399.69Z" />
<path
android:fillColor="#389282"
android:fillAlpha="0"
android:strokeColor="#389282"
android:strokeWidth="1"
android:pathData="M185.94 399.69C268.86 381.15 373.54 400.53 500 457.84L500 500L0 498.71L0 457.84C41.04 437.61 103.02 418.23 185.94 399.69Z" />
另一个是
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="500dp"
android:height="500dp"
android:viewportWidth="500"
android:viewportHeight="500">
<path
android:fillColor="#000000"
android:fillAlpha="0"
android:strokeColor="#000000"
android:strokeWidth="1"
android:pathData="" />
<path
android:fillColor="#000000"
android:fillAlpha="0"
android:strokeColor="#000000"
android:strokeWidth="1"
android:pathData="" />
<path
android:fillColor="#389282"
android:strokeWidth="1"
android:pathData="M185.94 72.51C268.86 85.91 373.54 71.9 500 30.48L500 0L0 0.93L0 30.48C41.04 45.1 103.02 59.11 185.94 72.51Z" />
<path
android:fillColor="#000000"
android:fillAlpha="0"
android:strokeColor="#389282"
android:strokeWidth="1"
android:pathData="M185.94 72.51C268.86 85.91 373.54 71.9 500 30.48L500 0L0 0.93L0 30.48C41.04 45.1 103.02 59.11 185.94 72.51Z" />
<path
android:fillColor="#389282"
android:fillAlpha="0"
android:strokeColor="#389282"
android:strokeWidth="1"
android:pathData="M185.94 72.51C268.86 85.91 373.54 71.9 500 30.48L500 0L0 0.93L0 30.48C41.04 45.1 103.02 59.11 185.94 72.51Z" />
这是我对矢量图像的一些建议
首先,create SVG file online,你需要然后convert it into a vector,这很简单:)