1
votes

I'm using a WebView to display a formatted HTML text file with color and font size.

My problem is it keeps removing spaces form the text, like it will combine two words together. I think it is because it is trying to fit the text within the screen width. How do I fix this? Or is there a better way to display formatted text like this? (I need size, color, links, and some centered text

This question has been already asked but was not answered. WebView removing spaces from text

1
can you post your html text and how do you try to show it in webview codeOrhan Obut

1 Answers

1
votes

I think you need load formatted local html file, so algorithm:

  • Parse you unformatted html data.

  • Format html data as you like, using .replace method

  • Load formatted data to your webview, like this: Load local html in WebView?