Samuh
Samuh

Reputation: 36484

Formatting webView content

I am getting some HTML text from a remote server which I am displaying inside a WebView. I need to format the text display and set a font size and color for the WebView.

The only way I can think of is: pre-pending the HTML string received with a tag and specify the font information there.

What is the correct way to do this?

Upvotes: 1

Views: 2121

Answers (1)

Pierre-Antoine LaFayette
Pierre-Antoine LaFayette

Reputation: 24412

CSS stylesheet? Assuming you know what the requested HTML content will look like; which you should since you can retrieve it and look at it.

Or am I misunderstanding the question?

Upvotes: 2

Related Questions