Screen Resolution

I’m new to Corona and trying to make a in-app Web that shows my website, I tried using quite a few none works properly. If I’m using bigger screen, it will only show small screen, how do I make it “responsive” to make  it show based on my device width and height? Here is my code:-

display.setStatusBar(display.TranslucentStatusBar) native.showWebPopup( 0, 0, display.pixelHeight, display.pixelWidth, "http://www.example.com")

First I would recommend using native.newWebView().

If you want it to take up the full screen of your device, make the width/height:  display.actualContentWidth, display.actualContentHeight and center it on the screen:

myWebView.x = display.contentCenterX

myWebView.y = display.contentCenterY

Rob

Thanks! It works perfectly!

First I would recommend using native.newWebView().

If you want it to take up the full screen of your device, make the width/height:  display.actualContentWidth, display.actualContentHeight and center it on the screen:

myWebView.x = display.contentCenterX

myWebView.y = display.contentCenterY

Rob

Thanks! It works perfectly!