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

Image doesn't display in android emulator

$
0
0

I make a Single Window Application(I don't use Alloy). And I wrote a simple code like below. It's only change form original code when project made.

<<FirstView.js>>

function FirstView() { 
    //create object instance, a parasitic subclass of Observable
    var self = Ti.UI.createView();
 
    var iv_pic = Ti.UI.createImageView({
        image:'image/1a.png',
        left:0,
        right:0,
        bottom:0
    });
    self.add(iv_pic);
 
    return self;
 }
 
module.exports = FirstView;
I run this Application in iPhone emulator. It's ok.Image "1a.png" was displayed correctly. but I run this Application in android emulator. It isn't ok.Image "1a.png" wasn't displayed.

I can't understand what is wrong.

titanium version is 3.1. android emulator version is Android 2.2.(I tried in ver 4.4. but result is same)


Viewing all articles
Browse latest Browse all 7655

Trending Articles



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