I have a number of html pages as Strings in my android app. So you might visualize it as List myWebPages where each webpage is an html page equipped with css and java
Solution 1:
Should I use WebView or should I use a TextView?
Since TextView
has no support for CSS or JavaScript, you have no choice but to use WebView
.
Notice that I don't have urls for the WebView; how would I pass the String?
Call loadData()
on the WebView
, passing the HTML.
Post a Comment for "Webview Vs Textview For Displaying Html Content"