Best way to display HTML in Android with images and disables links -
i have html content want display in activity, disable links - in fact disable ability interact, except viewing , scrolling.
i'm not sure if best way using webview (how disable interactivity?) or textview.
the html may refer images , content local - i.e. don't need point url, have html local string - although string has been obtained dynamically in part of app , not same time, nor images local.
i happy have app dynamically edit content remove tags, there may more elegant solution?
what's best approach in instance?
i'm not sure if best way using webview (how disable interactivity?) or textview.
if html fits within boundaries of supported html.fromhtml()
-- , here's blog post of mine long time ago giving idea of supports -- welcome use prepare spanned
use textview
.
i happy have app dynamically edit content remove tags, there may more elegant solution?
it depends upon nature of "interactivity". simple hyperlinks, attach webviewclient
overrides shouldoverrideurlloading()
, eats link clicks. however, if have posted forms, or javascript-based "interactivity", you'll need strip stuff out yourself.
Comments
Post a Comment