0

Is it possible to pass multiple arguments into a function through XML configuration, for example setting domainStep or rangeStep through XML?

1 Answer 1

1

In the case of domainStep and rangeStep, these are convenience methods that combine calls to multiple setters into one. TO set domainStep for example, you would set the two associated params domainStepMode and domainStepValue individually in your XML. This pattern should hold true for any other setter methods that take 2+ params.

Sign up to request clarification or add additional context in comments.

2 Comments

Yeah, is XML the recommended way to do it? It seems quite limited, is there a replacement in the works? Also is 0.62 reasonably stable and/or ready for production?
0.62 is pretty stable and will be released soon. XML is the suggested way to configure anything that you want to supply screen/layout specific params for. If these settings are going to be used regardless of orientation/screen density then programmatic configuration is fine. The latest version of Androidplot supports both "configurator" XML attributes and styleable attributes. Currently the number of styleable attributes is very limited so sticking with configurator for now would be my suggestion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.