我有来自某个服务器的以下html内容
<link href=\"http:\/\/TSCC222.nexusonline.ca\/Theme\" +
"/RenderCSS\\/1246\\\" rel=\\\"stylesheet\\\" \\/><style type=\\\"text\\/css\\\"> " +
"body { background-color:#fff; } #responsive-content { padding: 1em 1em; } " +
" #responsive-content div { width: 99% !important; display: block !important; " +
"text-align: center; } img { float: none !Important; max-width:99%; " +
"height: auto !important; }<\\/style><div id='responsive-wrapper'><div id='responsive-content'><span style=" +
"\\\"font-family: Gotham; text-align: center; font-size: 22px;\\\">" +
"It has corking. " +
" <br \\/><br \\/>Note that the post lights are part of the shared facility.  " +
";We have notified the sghts will be " +
"repaired shortly.<br \\/><br \\/>Please exercise additional caution in areas " +
"that are not well lit.<br \\/><br \\/>Thank you.<\\/span><br style=\\\"font-family: Gotham; " +
"font-size: medium; text-align: center;\\\" \\/><br style=\\\"font-family: Gotham; font-size: medium; " +
"text-align: center;\\\" \\/><img alt=\\\"\\\" src=\\\"http:\\/\\/internal.maxtvmedia.com\\/parsers\\/iconfinder\\/" +
"icons\\/Gnome-Dialog-Information-64.png\\\" style=\\\"cursor: default;\\\" \\" +
"/><div><br \/><\/div><\/div><\/div>
如何在Android中将这个HTML显示为完美的web。仅供参考我用Html.fromhtml()
编码的方法,但没有成功。
答案 0 :(得分:0)
使用WebView。
SELECT
employee.name,
company.id
FROM employee
INNER JOIN company
On employee.companyId= company.id
WHERE company.id IN (1,2,3)
方法会帮助你。更多信息,请点击此链接https://developer.android.com/reference/android/webkit/WebView.html