You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
mahozad
changed the title
Add resource version of functions for settings attributes
Add resource version of functions for setting attributes
Aug 3, 2021
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
.The text was updated successfully, but these errors were encountered: