waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

TimelineItem-alike HTML renderer for GDK #568

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For applications using Mirror API there is 
com.google.api.services.mirror.model.TimelineItem class available, with 
setHtml() method. It has built-in support for base_style.css and renders 
articles like those in 
https://developers.google.com/glass/tools-downloads/playground nicely, with no 
extra effort.

Would you consider adding similar capabilities to native GDK widgets, so we 
could use exactly the same HTML and have the same behavior on the Glass as when 
adding given HTML via Mirror API?

Some possible solutions matching current Android and GDK conventions:
1. Adding com.google.android.glass.widget.GlassWebView (as it would be 
Glass-specific widget).
2. Adding WebGlassClient to be used with android.webkit.WebView (as it's 
currently done for WebViewClient and WebChromeClient).
3. Adding com.google.android.glass.view.WebUtils class with WebView-altering 
capabilities.

Original issue reported on code.google.com by Michal.S...@gmail.com on 11 Jul 2014 at 2:27