Display web image on app

I am trying to display a gradient background as my app background . The problem is that I created this background in css and I cannot use css and corona . So I tried to put the html.html file in my app directory and display the background from there , but it isn’t working for me . 

Can someone help me ?

main.lua(nothing in it.) :

appglobals.lua :

-- appglobals.lua local M = {}; local appGlobals = {}; local getGlobals = function() return appGlobals; end return M; local appglobals = require("appglobals"); local g = appglobals.getGlobals(); -- for display objects g.someImage = display.newImage("html"); -- for data g.someData = 1234;

Can’t you export that image and just put in as a png?

You can’t do that. The only way to show HTML is to use a native.newWebView() and that will be on top of your Corona App.

Rob

Can’t you export that image and just put in as a png?

You can’t do that. The only way to show HTML is to use a native.newWebView() and that will be on top of your Corona App.

Rob