setBadgeText

open fun setBadgeText(@Nullable badgeText: @Nullable String)(source)

Sets the badge text for this menu item.

Badges will appear as a small circle, or a rounded rectangle for text, next to the menu item. The appearance may differ depending on its presenter's implementation.

Parameters

badgeText

The text to show in the badge, or null to remove it.

See also