applyOverrideConfiguration

open fun applyOverrideConfiguration(overrideConfiguration: Configuration)(source)

Call to set an "override configuration" on this context -- this is a configuration that replies one or more values of the standard configuration that is applied to the context. See createConfigurationContext for more information.

This method can only be called once, and must be called before any calls to getResources or getAssets are made.