getLabelWidth

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

Measures the width of the label.

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.