getLabelWidth
fun getLabelWidth(context: MeasuringContext, maxWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float
Measures the width of the label.
Parameters
maxWidth
the maximum width.
iconPaddingDp
the padding between the icon and the label.
iconSizeDp
the size of the icon.