Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以让用户只用 WebView 查看某个 <div> 吗?
谢谢!
首先将其解析<div>并仅将其加载到WebView中。
<div>
WebView
除此之外,没有。WebView显示你递给它的任何东西。
这篇文章已经很老了,但是请查看优秀的 jsoup 库来解析和选择 html 内容。