I'm trying to use the action bar drawer toggle, but I would like it to display something more than just the menu icon. I want it to display a notification count in the top right corner of my custom menu icon, but I still want the action bar drawer toggle to display the back arrow when needed.
Therefore, I first tried to see if I could display a custom layout (containing an imageview for my menu icon and a textview for my notification count) on the action bar drawer toggle but whithout success.
I then tried to create a menu item containing my custom menu icon. When this menu item is clicked, I open/close the navigation drawer, but I can't manage to display a textview containing my notification on the menu icon.
Any help/idea is appreciated :)
try these way:
layout file: