I am trying to use the action bar drawer switch, but I would like it to display something more than just a menu icon. I want it to display the number of notifications in the upper right corner of my custom menu icon, but I still want the action bar drawer to display the back arrow when needed.
So I first tried to see if I could display my own layout (containing an image for my menu icon and a text box for my notification counting) in the action bar switch, but without success.
Then I tried to create a menu item containing my custom menu icon. When this menu item is clicked, I open / close the navigation box, but I cannot display the text box containing my notification on the menu icon.
Any help / idea appreciated :)
source
share