RichPath icon indicating copy to clipboard operation
RichPath copied to clipboard

draw glitch on specific phone type

Open rmasarovic opened this issue 8 years ago • 2 comments

Hi i make trimPathEnd animation and try on 5 type phone. But only on HTC one a9 with android 7 have ugly glitch when trimPathEnd = 0. When i hide all icons. When animation end i have on screen have two little white point and this make only in this htc phone. Workerround is something like that.

add to animation .animationListener(new AnimationListener() { @Override public void onStart() {

                    }

                    @Override
                    public void onStop() {
                        line1.setFillColor(Color.TRANSPARENT);
                        line1.setStrokeColor(Color.TRANSPARENT);
                    }
                })

i attach screen screenshot_20171109-154344 screenshot_20171109-153927

It is in the project https://github.com/rmasarovic/RichPathAnimationTest.

rmasarovic avatar Nov 09 '17 14:11 rmasarovic

I will try that on several devices maybe I can reproduce it, I think you can consider your work around a right solution for the current state. Thank you for reporting this, if you get any issue please tell me.

tarek360 avatar Nov 09 '17 20:11 tarek360

@rmasarovic I noticed that glitch only with strokeLineCap="round" and trimPathEnd="0" if you don't need strokeLineCap="round" remove it, and I will investigate that issue, thanks.

tarek360 avatar Nov 10 '17 12:11 tarek360