In addition to a direct method for updating a property (like chart.setColor(color: Int)), provide a resource version of the method that takes a resource and resolves the value automatically (like chart.setColor(R.color.myColor)) for each property.
This is something practiced in Android Material components. See this for an example.
Also, add separate properties to modify a dimension in sp or dp.
For example, legendSize, legendSizeSp.
In addition to a direct method for updating a property (like chart.setColor(color: Int)), provide a resource version of the method that takes a resource and resolves the value automatically (like chart.setColor(R.color.myColor)) for each property.
This is something practiced in Android Material components. See this for an example.
Also, add separate properties to modify a dimension in sp or dp. For example,
legendSize
,legendSizeSp
.