What’s the best way to display formatted static content to a user in Corona SDK? For example for your help page. So my specific requirements are:
Mandatory
a) needs to support Simulator (to iterate during development and seeing layout)
b) support passing in the data dynamically via variable (would be layout of static data with dynamic data at appropriate points). So HTML is one approach but if using this would want to be able to pass the HTML as a string variable (i.e. not have to save it to file for the sake of it).
c) be placed within a newScrollView to be scrollable
Highly Desirable
d) can be used to send (e.g. email) a copy of the report to a user
e) allow a level of dynamic width/height/position adjustment (e.g. for orientation change)
Question - Anything available to do this? If I have “roll-my-own” I’m wondering what approach?
Re options my understanding is:
i) PDF - no way to create PDFs in Corona
ii) HTML view (newWebView) - doesn’t work in the simulator / can’t include in a display object / needs to be in a file (can’t pass it a HTML string)
iii) Using text objects (e.g. newText) - no way to then “email” it out
iv) other???
Background:
The newWebView doesn’t seem to support the above hence my question. I get this on my Mac when building the WebViewPhysics sample project.
native.newWebView() does not work in the Corona Simulator. Please build for device (or Xcode simulator) for this sample to work properly.
Wanted to avoid having to use multiple newText() type elements, then having to reposition them etc. The content will have some static and dynamic components to it.
Also using HTML would make it useful to be able to the email the page too (e.g. like a report).