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

Long Indicator step + 2 minor fixes #11

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

SmileHub
Copy link

Posibility to define a long indicator step (for example setting to 1 will display all values).

Minor bug fixes:

  • a defined Max value was never in the ruler and was impossible to reach
  • a default parsed mIndicatorInterval was incorectly set to 4 instead of 14

Extra added:
*padding to a ruler beggining and ending of getIndicatorIntervalWidth() size to both sides for some space in case we will be drawing a text (in future spaces should be dynamically calculated if bigger needs rise up).
*methods for manipulating long interval step: getLongIndicatorStep() and setLongIndicatorStep(final int step)

Customizable long indicator step to allow bigger flexibility \ use cases.
Customizable long indicator step to allow bigger flexibility \ use cases.
A long indicator step fully works.
Also a fix for a "max value" display.
mHorizontalScrollView isn't fully initialized at first to accept smoothScrollView.
So there was a 400ms delay for each selectValue(). 

The fix i made will selectValue() instantly without annoying delay and in cases when it fails to do that - it will loop 3 attemps with 100ms delay each trying to set (which should be enougth time for the mHorizontalScrollView to initialize (kinda a fallback to old functionality but with attempts to scrool as soon as possible).
@kevalpatel2106 kevalpatel2106 self-requested a review December 23, 2018 22:59
@kevalpatel2106
Copy link
Owner

@SmileHub Thanks for generating the PR. 👍 I will review it and let you know if I have any questions.🙏

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

Successfully merging this pull request may close these issues.

2 participants