getWidth

fun getWidth(context: MeasureContext, availableWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float

Measures the width of this LegendItem.

Parameters

context

the MeasureContext used to measure the height.

availableWidth

the available width for the item.

iconPaddingDp

the padding between the icon and the label.

iconSizeDp

the size of the icon.