Currently I’m stuck in a problem with WebView. I want to scale the WebView so that its text contents should not wrap on increasing or decreasing the scale factor. For that i tried to use WebView.setScaleX(value) and webview.setScaleY(value) but what is happening after this is I am not able to scroll the WebView and can not see the complete webpage in the WebView. So I need that whenever the webview scale will increase or decrease the content become larger or shrink so that the text will not wrap and displayed in bigger/smaller size like we are zooming in or out.
Is anyone of you having any idea that how to sort out this problem?
Not sure if it will work in this case, but you can usually add
 instead of spaces in HTML, they are supposed to keep it from breaking (*N*on *b*reaking *sp*ace)If that works, you could replace the original using
element.innerHTML = element.innerHTML.replace(/ /g,' ');