There was an old blog post by Mark Murphy, perhaps it's still on his site.

Or just look at the source:

https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/text/Html.java

You will want handleStartTag

-- K


2013/9/28 Nathan <[email protected]>

> Html.from Html. can parse html into a Spanned.
>
> It mentions it has limitations.
> Is it documented anywhere what limitations those are?
>
> It could be useful for context help and a lot more lightweight than using
> a Webview
>
> I've been considering something like this.
>
> http://blahti.wordpress.com/2012/02/14/how-to-build-simple-help-in-android/
>
> I wouldn't have to handle arbitrary text from the internet, just strings
> from our own resource files.
>
> Nathan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to