android - Xamarin cant add icon to toolbar -


i trying add icon app's toolbar isnt working , have no idea why. error getting:

09-10 23:09:48.421 d/inputmethodmanager( 4907): hsi window - flag : 0  pid  : 4907 [0:] not load image named: {0}: help.png 09-10 23:09:48.695 w/resourcetype( 4907): no package identifier when getting  value resource number 0x00000000 09-10 23:09:48.696 e/bitmapfactory( 4907): unable decode stream:  java.io.filenotfoundexception: help.png (no such file or directory) 

this how adding toolbar:

toolbaritems.add(new toolbaritem()         {             icon = "help.png",             order = toolbaritemorder.primary,             priority = 0,             command = new command(() => navigation.pushasync(new helppage()))         }); 

i have placed help.png icon on resources/drawable folder still isnt showing on app (the navigation works though, if tap space icon should be)

first of try setting buildaction of image androidresource. if not solve issue, can try:

... = imagesource.fromfile("help.png"); 

cheers! :)


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -