Skip to content
New issue

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

Vector with multiple paths is drawn with only one #17

Open
koperko opened this issue Jun 26, 2018 · 0 comments
Open

Vector with multiple paths is drawn with only one #17

koperko opened this issue Jun 26, 2018 · 0 comments

Comments

@koperko
Copy link

koperko commented Jun 26, 2018

I really can't make heads or tails of it ... The only path that is drawn correctly is "phone" but "button", "display" and "outline" are not drawn at all .. I tried removing "phone" path completely but that way nothing is shown. Classic ImageView renders everything perfectly. The only thing that comes to mind is that the other paths are malformed but they came from the same generation source as the working one

Here is the vector:

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="218dp"
    android:height="267dp"
    android:viewportHeight="269"
    android:viewportWidth="220">
<group>
    <path
        android:name="phone"
        android:fillColor="#FFF"
        android:fillType="evenOdd"
        android:pathData="M186.224,267l-156.444,-0.342C13.296,266.624 -0.038,253.224 0,236.728L0.721,-94.06C0.76,-111.186 14.662,-125.038 31.776,-125l155.302,0.338c17.114,0.038 30.956,13.95 30.922,31.076l-0.721,329.643c-0.034,17.125 -13.941,30.98 -31.055,30.943zM201.408,213L202,-76.565 16.592,-77 16,212.57l185.408,0.43zM92,229c-5.523,0 -10,4.477 -10,10s4.477,10 10,10h35c5.523,0 10,-4.477 10,-10s-4.477,-10 -10,-10L92,229z" />


    <path
        android:fillColor="#00000000"
        android:name="outline"
        android:fillType="evenOdd"
        android:pathData="M187.224,267l-156.444,-0.342C14.296,266.624 0.962,253.224 1,236.728L1.721,-94.06c0.038,-17.126 13.941,-30.978 31.055,-30.94l155.302,0.338c17.114,0.038 30.956,13.95 30.922,31.076l-0.721,329.643c-0.034,17.125 -13.941,30.98 -31.055,30.943z"
        android:strokeColor="@color/cool_grey"
        android:strokeWidth="2" />


    <path
        android:name="display"
        android:pathData="M201.408,213L16,212.57 16.592,-77 206,-76.565z"
        android:fillColor="@color/cool_grey"
        android:fillType="evenOdd"/>
    <group
        android:name="buttonGroup"
        android:translateX="82"
        android:translateY="229">
        <path
            android:name="button"
            android:fillColor="@color/cool_grey"
            android:fillType="evenOdd"
            android:pathData="M10,0L45,0A10,10 0,0 1,55 10L55,10A10,10 0,0 1,45 20L10,20A10,10 0,0 1,0 10L0,10A10,10 0,0 1,10 0z" />
    </group>
</group>
</vector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant