Skip to content

Webkit library to set WebView dark theme in Android

Notifications You must be signed in to change notification settings

Kakyire/webview-theme

Repository files navigation

Dark WebView

This library helps you to set your WebView background to dark in Dark Theme mode.

Dependency

Add the dependency to your app level build.gradle

Gradle Groovy DSL

dependencies {
	implementation 'io.github.kakyire:webview-theme:1.0.0'
}

Gradle Kotlin DSL

dependencies{
implementation("io.github.kakyire:webview-theme:1.0.0")
}

Implementation

In your activity or fragment add this single line of code

Implementation

webView.setWebViewDarkTheme()