Navigation button not showing up


#1

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?


#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.


#3

Is it possible to use a custom image here from app/images/ folder, not res?


#4

Yes, you can. You just need a valid image path, could be from resources / from file storage.


#5

Well this didn’t work for me.

Can you share correct syntax?


#6

Please refer the official docs and sample apps like Grocery one.


#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?


#8
<ActionBar title="Home" class="action-bar">
	<NavigationButton icon="res://menu"></NavigationButton>
</ActionBar>

#9

Does that work for you?