newWebView - Device Resolution - iPhone 4s, 6, 6 Plus

Hi, 

I am developing a APP to use in Iphone and Android, but I don’t know what is the Mobile Phone/Tablet of my users.

Is it is possible create a single aplication to configure the resolutions, lite iPhone 4s, 5s, 6, 6 plus?

I will use only a menu and a newWebView to show a HTML5 application.

Now I am using this command to create the WebView:

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight)

I saw in config.lua some informations about the Layout. Is it possible to use this config.lua to manage different resolutions and devices?

application = {

content = {

width = 320,

height = 480,

scale = “letterBox”,

fps = 30,

Thanks a lot!

Have you tried placing your webview at coordinates 0,0 and using display.contentWidth and display.contentHeight? (You may need to set the anchorX and anchorY properties.)

If you’re just starting I admit not all of this is intuitive. I’d spend some time with the tutorials and sample code. In general you may find it’s better to use adaptive content scaling and avoid hardcoding width and height:

https://coronalabs.com/blog/2014/10/28/resolution-independence-adaptive-content-scaling-in-corona/

I’ll study the informations, thanks!!!

ASAP I’ll send informations about the tests.

Have you tried placing your webview at coordinates 0,0 and using display.contentWidth and display.contentHeight? (You may need to set the anchorX and anchorY properties.)

If you’re just starting I admit not all of this is intuitive. I’d spend some time with the tutorials and sample code. In general you may find it’s better to use adaptive content scaling and avoid hardcoding width and height:

https://coronalabs.com/blog/2014/10/28/resolution-independence-adaptive-content-scaling-in-corona/

I’ll study the informations, thanks!!!

ASAP I’ll send informations about the tests.