sean-perkins / nativescript-animated-circle

NativeScript plugin for animated progress borders on circles.
Apache License 2.0
13 stars 11 forks source link

Slight dark border wrapping the ring #8

Open FranciZ opened 6 years ago

FranciZ commented 6 years ago

Which platform(s) does your issue occur on?

Android, Pixel XL 2

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

There's a slight border around the ring on android that I can't get rid of. See attached image. Is there some way to get rid of that border?

Thanks!

screenshot_20180417-133105

pichurichko commented 5 years ago

Try this workaround.

Declare reference to circle component first:

@ViewChild("circle") circle: ElementRef;

Then use code like this (when reference to element became available):

if(isAndroid)
{
    this.circle.nativeElement._androidView.setOuterContourSize(0);
    this.circle.nativeElement._androidView.setInnerContourSize(0);
}
7ammer commented 5 years ago

In Vue this can be done like so...

<AnimatedCircle @loaded="onLoadCircle" />

methods: {
    onLoadCircle(args) {
        let nativeView = args.object.nativeView;

        if(isAndroid) {
            nativeView.setOuterContourSize(0);
            nativeView.setInnerContourSize(0);
        }
    },
}