Dark / Night mode

The SDK has a default configuration for the night mode. In order to change the night mode styles you have to define the same styles that you override for the light mode and add them in your "*-night" configuration folder (e.g. values-night/styles.xml) and change the values accordingly.

By default the SDK will follow the OS setting, that means, that if the the night mode is enabled the SDK will automatically load the "*-night" configuration.

If your application doesnโ€™t support the night mode you have to programmatically enforce the light mode using the following code:

AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);

Last updated