WebView and Widgets

Hello (note: serious novice is writing)

I’m working on a demonstration project.

Need to be able to display HTML (or text that can have different sizes and styles be scrollable and maybe include pictures).

I found a nice dropdown menu. I’ve got the menu and a webview on the screen. I touch (click in simulator) but the dropdown does not show up. Then, I recall reading somewhere the webviews are always on top. Is there any way around this? Is there another widget I can use to display the styled text?

If this is not possible, project dies…

Thank you.

-Bob Gordon

Hi Bob,

Well, there is no way around the fact that the WebView must exist in front (on top) of the OpenGL layer. What kind of “text styling” do you need to accomplish? Is it a considerable amount of inline per-word styling/coloring? Or is it slightly more simple in terms of using various “header” styles vs. body text styles, some pictures, etc.?

Best regards,

Brent

Brent,

It’s probably the “slightly more simple…” Part of the problem is that the text is going to be written by multiple clients (not on the phone), and I thought that non-technical people could easily use Markdown from which we could generate the HTML to display to the ultimate user.

Given the problem with the WebView always on top, I think I will change what I’m doing and have a full page menu (instead of the dropdown). So, the user will push a button and the webview will disappear. The user will see the menu, select an item and the webview will appear with new content. 

If you have another suggestions (e.g. is it possible to have multiple styles in some sort of text widget), I would like to know.

Thank you.

Hi Bob,

If the content will be written by multiple people, and especially in Markdown, the web view is the best choice. Remember that you can move/position it on x/y, and it doesn’t necessarily need to occupy the entire screen. It can also have a transparent background, if for some reason you wanted to place a vector object or background on the OpenGL layer behind it.

Best regards,

Brent

Hi Bob,

Well, there is no way around the fact that the WebView must exist in front (on top) of the OpenGL layer. What kind of “text styling” do you need to accomplish? Is it a considerable amount of inline per-word styling/coloring? Or is it slightly more simple in terms of using various “header” styles vs. body text styles, some pictures, etc.?

Best regards,

Brent

Brent,

It’s probably the “slightly more simple…” Part of the problem is that the text is going to be written by multiple clients (not on the phone), and I thought that non-technical people could easily use Markdown from which we could generate the HTML to display to the ultimate user.

Given the problem with the WebView always on top, I think I will change what I’m doing and have a full page menu (instead of the dropdown). So, the user will push a button and the webview will disappear. The user will see the menu, select an item and the webview will appear with new content. 

If you have another suggestions (e.g. is it possible to have multiple styles in some sort of text widget), I would like to know.

Thank you.

Hi Bob,

If the content will be written by multiple people, and especially in Markdown, the web view is the best choice. Remember that you can move/position it on x/y, and it doesn’t necessarily need to occupy the entire screen. It can also have a transparent background, if for some reason you wanted to place a vector object or background on the OpenGL layer behind it.

Best regards,

Brent