Community Questions & Answers
How to retrieve the actual screen resolution (not platformWidth/platformHeight)
Hello, This may seem like an easy one. I want to know the amount of pixels available in each orientationmode. I want to know the available width in landscape, and the available height in portrait. First guess, of course is to think that you can get the...
Getting Platform Width as an int
I am creating a custom tabBar for android and to make each tabs width size dynamically i need to divide the width of the device by the number of tabs to that no matter what the width in pixels the device is they will always display correctly. Now I know...
Calculate apps density pixel width & height using Titanium.Platform.DisplayCaps.dpi?
When getting the height and width of the application using: Titanium.Platform.DisplayCaps.platformWidth/platformHeight it returns the values in pixels. My app is using density pixel width's and height's so it looks consistent across various devices. Using...
Statusbar/notificationbar/footbar height? (available height)
Hello, Is there a way to get the actual height of the screen of a device? Ti.Platform.displayCaps.platformHeight gives me vertical resolution of the screen, not the actual real estate I have at my disposal. On iOS it's always 20 (40 @ retina), but on...
Difference in DPI calculations between iPhone and iPad
I have been using the DPI units for all my layout positioning to keep my apps consistent across devices. I have taken the conversion function from a [previous...
Titanium.Platform.displayCaps.platformHeight Runtime Error
Using the statement; Titanium.Platform.displayCaps.platformHeight returns the following run-time error on Android Emulator: "Cannot read property from displayCaps from undefined" -- what am I doing wrong here? Or is this a known bug?
Android displayCaps difference between SDK versions
If this was answered elsewhere I apologize for the repost. When I deploy on my DroidX using SDK version 1.6.3 I get displayCaps values of w:320 h:569. If I deploy using 1.7.3 continuous build with the exact same code, displayCaps returns w:480 h:854. I...
How can i refresh the screen size after orientationchange?
Is it possible to refresh the displayCaps values on orientation change? I know you can implement an event listener for orientation change, but I can't find how to refresh the displayCaps anywhere... Anyone knows how to do this? Any help would be much...
Showing 1-8 of 8