I want to change the anction bar icon on Android, using a remote image.
I change the URL of the image by javascript code like this :
$.myView.actionBar.icon = 'http://myserver/image.png'The image is loaded and displayed (in Android and IOS). But i load a specific image for each density. For example, if i am on a xxhdpi Android, i load the url
http://myserver/image-xxhdpi.png.
But the displayed image is too small. And i think i know why : Android think the image is in a 1x density. So the image is 3 times smaller than the original because xxhdpi is 3x density.
How can i tell to the action bar to not scale the remote image ? Or how to force the density ?