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.
是否可以在 android 的视图中仅呈现所需的内容;内容需要从 URL 中获取,并且必须进行定制。例如;从这个链接,我只需要显示新闻的标题和内容。
我不知道这在Android中是否可行?任何帮助表示赞赏。
也许您可以使用 javascript 隐藏它。
您必须设置 webclient 并挂钩页面完成事件,然后执行 javascript 以隐藏您不想显示的部分。类似 webview.loadUrl('javascript:$("#div").hide());