We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to add a SeriesItem that reaches for example from 25% to 50%, without having to overdraw the first 25%?
The text was updated successfully, but these errors were encountered:
When creating the series the setRange function lets you set the range as well as the initial position:
setRange
public Builder setRange(final float minValue, final float maxValue, final float initialValue)
In your case something like this should do the trick:
DecoView arcView = (DecoView)findViewById(R.id.dynamicArcView); SeriesItem seriesItem1 = new SeriesItem.Builder(Color.RED).setRange(0, 100, 25).build(); int series1Index = arcView.addSeries(seriesItem1); arcView.addEvent(new DecoEvent.Builder(50).setIndex(series1Index).setDelay(1000).build());
DecoView arcView = (DecoView)findViewById(R.id.dynamicArcView);
SeriesItem seriesItem1 = new SeriesItem.Builder(Color.RED).setRange(0, 100, 25).build();
int series1Index = arcView.addSeries(seriesItem1);
arcView.addEvent(new DecoEvent.Builder(50).setIndex(series1Index).setDelay(1000).build());
Sorry, something went wrong.
But with this the red item starts at 0 and not at 25. I would like that there is only between 25 and 50 the red item. Am I missing something?
If you want the total range of the series to run from 25 to 50 use setRange(25, 50, 25).
setRange(25, 50, 25)
No branches or pull requests
Is it possible to add a SeriesItem that reaches for example from 25% to 50%, without having to overdraw the first 25%?
The text was updated successfully, but these errors were encountered: