There was such a question: I have a WebView and the need to show a broader page where I haven’t heard about <br/> .

Driving left and right is tiring. It is necessary to implement the transfer of text, based on the scale and size of the screen. Question: how?

I would be grateful for the help.

    2 answers 2

    There is no regular solution. It only occurred to me to get html out of the web, to wrap it in

     <div style="width:100%">...</div> 

    And shove back

    • With the page itself is not an option. It should be on the client side. Yes, and what happens if a huge page with the tabs, graph, etc. Insolent squeeze? - Martin_Devil

    Try webView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN) - in theory, all the text should shrink in one column across the port width

    • I 'll try and sign off in an hour - Martin_Devil
    • I took a too complex code ... I can not understand where to go, the code already seems to have this, but it works in pieces: half is transferred. half not. - Martin_Devil
    • @Martin_Devil is a violation of forum rules - a freelancing proposal. For this you can get a ban. - Barmaley
    • Freelance freelance. Eheh, and where else can you find really rummaging people, and not just another shkolotu? Okay, Sorry. - Martin_Devil
    • Everything is working. Thank. - Martin_Devil