Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android, action bar, remote icon and density scaling

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>