Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

webview dark mode android

if(WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK)) {
    WebSettingsCompat.setForceDark(myWebView.getSettings(), WebSettingsCompat.FORCE_DARK_ON);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #webview #dark #mode #android
ADD COMMENT
Topic
Name
3+5 =