Android adding HTML content on a webview without space

Posted by Rahul on Stack Overflow See other posts from Stack Overflow or by Rahul
Published on 2010-05-05T07:06:46Z Indexed on 2010/06/02 21:54 UTC
Read the original article Hit count: 311

Filed under:
|
|

I am trying to add an HTML content to a web view. If the words in the HTML content are without spaces then webview keeps that particular word on the same line.I want that content to be wrapped and be on the next line.Is it possible to do that.I am attaching a sample code that can reproduce the issue.

  String temp="<p>WebViewallowsyoutocreateyourownwindowforviewingwebpages(orevendevelopacompletebrowser).Inthistutorial,youcreateasimpleActivitythatcanviewandnavigatewebpages.1.CreateanewprojectnamedHelloWebView.</p>";
             WebView wb=new WebView(this);
             wb.loadDataWithBaseURL("", temp, "text/html", Encoding.UTF_8.toString(),""); 
             setContentView(wb);

© Stack Overflow or respective owner

Related posts about android

Related posts about webview