misakuo / svgtoandroid

Converting SVG to VectorDrawable
https://plugins.jetbrains.com/plugin/8103
MIT License
528 stars 45 forks source link

Android Studio 3.0 warning #31

Closed jemshit closed 6 years ago

jemshit commented 6 years ago

Getting Use 0.566 instead of .566 to avoid crashes on some devices warning (error) on below xml

<path android:fillColor="#FFFFFF"
          android:fillType="evenOdd"
          android:pathData="M.566 29.735C-0.003 14.697 13.134.801 28.146.62c7.652-.654 ...
misakuo commented 6 years ago

Got it, I will fix it later

misakuo commented 6 years ago

@jemshit Could you please provide your svg file to help me test this problem?

jemshit commented 6 years ago

File: https://ufile.io/uw25i


<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="20dp"
        android:height="20dp"
        android:viewportHeight="77"
        android:viewportWidth="78">
    <group
        android:name="translation"
        android:translateX="10"
        android:translateY="10">
        <path
            android:fillColor="#FFFFFF"
            android:fillType="evenOdd"
            android:pathData="M.566 29.735C-0.003 14.697 13.134.801 28.146.62c7.652-.654 15.095 2.326 20.886 7.185-2.375 2.618-4.791 5.208-7.374 7.63-5.097-3.105-11.235-5.472-17.192-3.369-9.61 2.743-15.429 14.119-11.874 23.545 2.944 9.845 14.887 15.247 24.247 11.112 4.847-1.741 8.041-6.224 9.443-11.042-5.555-.111-11.109-.042-16.664-.195-.014-3.314-.028-6.614-.014-9.928 9.263-.014 18.539-.042 27.816.042.569 8.118-.625 16.806-5.888 23.323-7.208 9.301-20.525 12.03-31.357 8.382C8.676 53.518.316 41.905.566 29.735z"/>
    </group>
</vector>
vdubedout commented 6 years ago

that's what this library does. Merging both can help. https://github.com/eymar/DrVectorAndroid

misakuo commented 6 years ago

@vdubedout I will try to contact the author of DrVectorAndroid to request permission to use his code

misakuo commented 6 years ago

The release of 1.8.1 should be resolved this problem