Quantcast
Viewing all articles
Browse latest Browse all 8

Image/View rendering as 320, but set to 480??

I have a simple view that is set to 480 and it loads a JS that has some image elements which are also set to 480. When I load it onto the Droid 2, it loads the loader screen at 480x854, but when it loads the view its back at 320. Here is what I am doing:

Titanium.include('header.js');
var viewContainer = Titanium.UI.createView({
  top:0,
  width:480,
  height:420
});
And on header.js, the following:
var headerView = Titanium.UI.createView({
  backgroundColor:'#000000',
  top:0,
  left:0,
  height:265,
  width:auto, //I have also tried 480 here
  opacity:1
});
 
var logo = Titanium.UI.createImageView({
    url:'images/port_title.png',
    width:480,
    height:86,
    left:0,
    top:0,
    opacity:1
});
headerView.add(logo);
Thanks in advance for any help.

Viewing all articles
Browse latest Browse all 8

Trending Articles