How to show Certain Part of WebPage inside Webview With Fit Screen to All Devices

前端 未结 5 2208
终归单人心
终归单人心 2021-02-19 23:13

I Want to Show WebPage Inside WebView. Up to this it is fine.

But I have WebPage (As Given Below) and I want Certain Part of it. I mean just Top Left Corner should be vi

5条回答
  •  长发绾君心
    2021-02-19 23:55

    You could try using HtmlCleaner (examples of how to use it here) to get the html from the webpage, then extract the part you want to display and load it into the WebView using: WebView.loadData();.

    I used this method in one of my apps to reformat a page so that it would be easier to use on a mobile device.

提交回复
热议问题