开发者

Display certain contents of a website into webview

开发者 https://www.devze.com 2023-03-09 13:55 出处:网络
I\'m new to Android programming. I would like to know if I can load a certain part of a website into webview? The website is made from CSS. It contains headers and buttons that I do not want to be d

I'm new to Android programming.

I would like to know if I can load a certain part of a website into webview? The website is made from CSS. It contains headers and buttons that I do not want to be displayed into the webview. I would only like to display the contents in the website, li开发者_运维百科ke images and texts. Is this possible? If so, how?

Many thanks in advance!!!


You can use the public void loadDataWithBaseURL (String baseUrl, String data, String mimeType, String encoding, String historyUrl) method to load a customised html, maybe your app can get the html from the site, modify it, and loadDataWithBaseUrl then.

0

精彩评论

暂无评论...
验证码 换一张
取 消