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

can't show images while using density-specific resources on Android

$
0
0

I can't see any image while using density-specific resources on Android. In my app, if i put images in a folder(such as 'images' - folder name) like Resources/images/imageName.png then i can see that image but if i put that images in the android folder under Resources folder like Resources/android/images/res-long-land-hdpi (and so on)/imageName.png then i can't see those images. i tried different ways while calling them like below -

var HomeImg = Titanium.UI.createImageView({
        image : "/images/Horse.png"// i also tried by "images/Horse.png" and only "Horse.png" but nothing works
    });

Viewing all articles
Browse latest Browse all 7655

Trending Articles



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