" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Get device screen width and height using Corona libraries

Posted on November 24th, 2015 by Raju Mahato

Every time we need device screen height and width to make proper UI. Application that are made using corona libraries, we can get height and width easily to that condition. Code Block : //Assign screen width local scrnWidth = display.stageWidth //Assign screen height local scrnHeight = display.stageHeight //Display the height and width in console print(scrnHeight, […]

Getting Screen Height And Width Using Titanium In Android/iOS Devices

Posted on November 23rd, 2015 by Sourabha Sahoo

You might need to find the screen width and height of Andriod/iOS devices to make your application compatible in different sizes of screen. So by using the following lines of code you can fetch the screen height and width of Android/iOS devices with Titanium. //fetch the height of the screen var screenHeight = Ti.Platform.displayCaps.platformHeight; //fetch […]