MagicProgressWidget icon indicating copy to clipboard operation
MagicProgressWidget copied to clipboard

not smoothly

Open borjaruiz opened this issue 9 years ago • 3 comments

Hi, very nice library, I have a problem: magicProgressCircle.setSmoothPercent(0.8f) is not working. The progressCircle isn't animated.

Thanks in advance

borjaruiz avatar Feb 09 '16 16:02 borjaruiz

Could you provide your code, Let me check it. I couldn't find out the cause from your said.

Jacksgong avatar Feb 14 '16 02:02 Jacksgong

I just use this in the onCreateView() of my fragment, the layout is like the example:

magicProgressCircle =(MagicProgressCircle) v.findViewById(R.id.demo_mpc); magicProgressCircle.setSmoothPercent(0.8f);

Sometimes it works and others not

borjaruiz avatar Feb 16 '16 12:02 borjaruiz

Sorry... I didn't encounter similar problems, could you provide your demo project source code(by Gmail: [email protected] or GitHub project), I will do my best to find out the cause.


.... I suspect there may be the Smooth-Mechanism that leads to this problem.

if the current provider percent(the aim percent) compared to the last provider percent more than minInternalPercent(we use the default value: 0.03), it will be split to the several smoothInternalPercent(we use the default value: 0.01) and with the smoothIncreaseDelayMillis(we use the default value: 1ms).

Jacksgong avatar Feb 17 '16 11:02 Jacksgong