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

Android wrong resolution

$
0
0

I'm testing an android app direclty on device (SAMSUNG S2). Using following code

var base = Ti.Platform.displayCaps.platformWidth ;
var altezza = Ti.Platform.displayCaps.platformHeight;
 
Ti.API.info(base + " , " + altezza)
 
var win = Ti.UI.createView({
    backgroundColor : 'white',
    top : 0,
    left : 0,
    height : altezza,
    width : base,
    zIndex : 2,
});
happen that INFO resolution gives 480,800 but the view is more bigger than the display...

Anyone know what's going on?

thanks, Steve


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images