Skip to content

Instantly share code, notes, and snippets.

@polojerry
Last active July 28, 2021 11:25
Show Gist options
  • Save polojerry/8a49ad7f89c8c48ffda21fcb18db3bbc to your computer and use it in GitHub Desktop.
Save polojerry/8a49ad7f89c8c48ffda21fcb18db3bbc to your computer and use it in GitHub Desktop.
Creating a badge on Toolbar
val badge = BadgeDrawable.create(context)
badge.number = 10
BadgeUtils.attachBadgeDrawable(
badge,
toolbar,
menuId
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment