Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

images in Android

$
0
0

Hi,

i want to display an image in imageView : My imageView :

var myImageView = Ti.UI.createImageView({
    defaultImage : '/images/default.png',
    image : '/images/default.png',
    top : -20
});
In my project :

I have an images folder which doesn't contain default.png. but in android folder, i have images forlder with : res-long-port-hdpi an others..in all of these folders, i have default.png

so i expecting the good default will be displayed..but not...

i tryed : image: images/default.png too or : image : Ti.Filesystem.resourcesDirectory + 'images/default.png'

without success..

any help ?

thanks


Viewing all articles
Browse latest Browse all 7655

Trending Articles



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