应该使用什么视图来加载静态本地 html 文件?
在我的应用程序中,我必须将 abc.html 文件加载到特定布局。 那么为此我必须使用哪个视图? 我的 WebView 应该没问题吧?或者有任何其他视图可以快速加载本地 html 文件。
注意:Html 文件不是从服务器或内部加载的。但它是我们存储在资产目录中的本地文件。
In my appplication i have to load the abc.html file in to specific layout.
So for that which view i have to use ?
Should i WebView is fine. or there is anyother View that load that local html file fast.
Note: the Html file is not loading from the server or internate. but it is tha local file that we stored in to assets directory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您仍然需要使用 WebView 来渲染 HTML 标签、CSS 和 Java 脚本
You still need to use WebView for rendering HTML tags, CSS and Java script
WebView 能够加载 HTML 文件以及网站功能背后的所有功能。我建议使用这个。
A WebView has the ability to load HTML Files and all the functionality behind the website functionality. I recommend using this.
使用网络视图。
use webview.