Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Layout mobile app using pixel values

I am wondering about the width / height sizes in Android using Ti Mobile 1.3.0.
For example when I use the WVGA854 Emulator and log the displayCaps I receive following values:

displayCaps.platformWidth = 320
displayCaps.platformHeight = 569

When I log the size property of my main window it has a size from 320 width x 519 height.

Other display sizes has a similar behaviour and I found no documentation / thread about this issue.

I expect displayCaps.platformWidth = 480
displayCaps.platformHeight = 854.

What does these specification / values mean? Pixel? I want to layout my app using Pixel values.


edit: displayCaps.platformWidth / Height outputs the correct values on my device but not within the emulator?

— asked June 20th 2010 by Jicks Steen
1 Comment
  • I have the same problem. Using SDK:2.1 and Screen:WVGA854 in Titanium Developer 1.2.1, log says Titanium.Platform.displayCaps.platformWidth = 320.

    Are there any settings I should change additional to choosing WVGA854 in Titanium Developer to get 480x854 resolution?

    — commented September 14th 2010 by Antonija Malenica

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.