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

not smoothly #1

Open
borjaruiz opened this issue Feb 9, 2016 · 3 comments
Open

not smoothly #1

borjaruiz opened this issue Feb 9, 2016 · 3 comments
Assignees
Labels

Comments

@borjaruiz
Copy link

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

Thanks in advance

@Jacksgong
Copy link
Collaborator

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

@Jacksgong Jacksgong self-assigned this Feb 14, 2016
@borjaruiz
Copy link
Author

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

@Jacksgong
Copy link
Collaborator

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants