I checked out HtmlSpanner briefly. It's no replacement for a WebView but
I would consider it for simple dynamic HTML. Although if the content was
static, I think I would still prefer to build the Spanneds by hand. It may
also be worth mentioning that the source directory hasn't been updated in
about a year and a half.
I'm still digging into the WordPress codebase but they do have some
interesting WebView usages, including one implementation
<https://github.com/wordpress-mobile/WordPress-Android/blob/c20e0ba7e399474333f54fd440aa82cdeb16f0fe/WordPress/src/main/java/org/wordpress/android/ui/reader/views/ReaderWebView.java>
that manages a custom view for fullscreen video.
--stephen
On Mon, Jun 8, 2015 at 9:54 AM, Stephen Niedzielski <
sniedzielski(a)wikimedia.org> wrote:
Good idea. The WordPress codebase is one of the few
good Android
references outside of the Android Open Source Project I've found. The GitHub
app <https://github.com/forkhubs/android> is also a pretty nice
reference. I'll check out HtmlSpanner and the WordPress implementation.
--stephen
On Tue, Jun 2, 2015 at 8:13 PM, Brian Gerstle <bgerstle(a)wikimedia.org>
wrote:
I've been thinking about our client-side
strategy, and it just occurred
to me that I should check out other open source projects.
WordPress seems to be using DTCoreText
<https://github.com/wordpress-mobile/WordPress-iOS/blob/develop/WordPress/Classes/ViewRelated/Views/WPRichTextView.m>
in
their iOS app, which is a library for natively rendering HTML in text views
(w/o UIWebView). The developer also has a great iOS blog
<http://cocoanetics.com>. The closest thing I could find for Android is
HtmlSpanner <http://nightwhistler.github.io/HtmlSpanner/>.
Anyone have ideas for other projects or technologies to check out? Maybe
we should talk to people at WordPress, as it seems their problem space is
somewhat similar to ours (many installs, user-created content, custom
styling, multiple platforms ...).
Regards,
Brian
--
EN Wikipedia user page:
https://en.wikipedia.org/wiki/User:Brian.gerstle
IRC: bgerstle
_______________________________________________
Mobile-l mailing list
Mobile-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l