setHorizontalPadding

open fun setHorizontalPadding(@Px horizontalPadding: Int)

Sets how much (in pixels) horizontal padding to add to the badge when it has label contents. Note that badges have a minimum width as specified by com.google.android.material.R.styleable#Badge_badgeWidth.

Parameters

horizontalPadding

badge's horizontal padding