All that my module does is it figures out the coordinates for the edges of the screen, as well as the screen’s actual width and height in Solar2D units. You don’t need to do anything for it to work. You just need to require it in the scenes where you need it so that you have access to its properties.
I also saw that you mentioned that the WebView on the simulator doesn’t support css, but that’s not the case. You can create a new project and add the following code to your main.lua and create the html and css files and it should work:
main.lua:
local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 200, 200 )
webView:request( "page.html", system.ResourceDirectory )
page.html:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>
<h1>Heading 1</h1>
<p>Paragraph.</p>
</body>
</html>
mystyle.css:
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
And when you run the project, you should see a light blue background with a blue and slightly offset heading.