getLabelWidth
fun getLabelWidth(context: MeasuringContext, iconSize: Dp, iconLabelSpacing: Dp, maxWidth: Float): Float
Measures the width of the label.
Parameters
iconSize
the LegendItem.icon size.
iconLabelSpacing
the spacing between LegendItem.icon and LegendItem.labelComponent.
maxWidth
the maximum LegendItem width.