Vector Drawable with Trim path loads incorrectly via ResourceLoader

Viewed 85

I created android vector drawable resource (.xml) with path

<path
    android:name="ellipse"
    android:pathData="M 0 -247.5 C 136.69 -247.5 247.5 -136.69 247.5 0 C 247.5 136.69 136.69 247.5 0 247.5 C -136.69 247.5 -247.5 136.69 -247.5 0 C -247.5 -136.69 -136.69 -247.5 0 -247.5 Z"
    android:strokeWidth="48"
    android:strokeAlpha="1"
    android:strokeColor="#01adcd"
    android:strokeLineCap="round"
    android:strokeLineJoin="miter"
    android:strokeMiterLimit="4"
    android:trimPathStart="0"
    android:trimPathEnd="0"
    android:trimPathOffset="0" />

After that, I created .apk using aapt2 to load the above resource using ResourcesLoader.

But in the output, I am getting the wrong display with a dot inside.

On the other hand, adding the source drawable to a sample project and compiling it via Android Studio with no explicit usage of ResourcesLoader, then drawable represents fine, with no mistakes (no dot in the middle).

This problem is repeated for strokeLineCap = ”round” and “square” when trimPathStart and trimPathEnd = 0. Did anyone have such a problem?

0 Answers
Related