The navigation button is not showing up in the Action bar. I tried all kinds of different layouts. So I created a very simple project in playground. Its actually a blank new project with NavigationButton abd it doesn’t work here either. Is my syntax wrong?
Navigation button not showing up
manojdcoder
#2
It will work only if you have a valid icon file named ic_menu.png
. It’s not a system icon, ic_menu_back
is an example for system icon.
Refer official android docs to know the available system icons.
manojdcoder
#4
Yes, you can. You just need a valid image path, could be from resources / from file storage.
Vipul.K
#7
I’ve read every character of the docs (relevant pages) but couldn’t find any example of image being used as nav button. I’ve also checked many files from the grocery app but couldn’t find it there either. Can you be more specific as to what you are referring to?
manojdcoder
#8
<ActionBar title="Home" class="action-bar">
<NavigationButton icon="res://menu"></NavigationButton>
</ActionBar>