Home > Software engineering >  How to add Badge on hamburger navigation menu icon with BadgeDrawable?
How to add Badge on hamburger navigation menu icon with BadgeDrawable?

Time:09-05

I add Badge on a button like enter image description here

I want like this :

enter image description here

My question : Can I add Badge on hamburger navigation menu icon with BadgeDrawable ?

CodePudding user response:

Implement DrawerArrowDrawable class and override the draw(canvas: Canvas) method. For detailed example guide visit this link https://android.pcsalt.com/add-badge-count-to-navigation-drawer-hamburger-icon-android/

  • Related