P
P
phoenix1242018-07-27 12:48:06
Android
phoenix124, 2018-07-27 12:48:06

How to keep color in WebView?

Hello everyone, I want to make sure that when navigating through the WebView, the background color does not change, that is, the one that I specified in onCreate () remains. I didn’t find it on the Internet, I found only what can be done like through onStart () or onResume (), but this did not help. Also, when following hyperlinks in the webView (when the color is lost), the following "action"
V / cr_Ime occurs: updateState type [0-> 0], flags [0], show [false], but how can I use this I don't get it... can anyone tell me? How can you do what you want?
Also I will say that this cannot be the background color of the site because I take all the resources from the application.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Varakosov, 2018-07-27
@phoenix124

Um...are you using a WebView to display HTML stored in resources? Then add CSS styles. Alternatively, using WebView, you can inject a JS script from which you can control the display.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question