Repository navigation
Enable Support for Dark Themes Android
DHollowellHPE edited this page Oct 27, 2026
·
1 revision
This article describes how to support dark themes in your Meridian-powered app.
To enable dark theme support in your Meridian-powered SDK app, you’ll need to set supportDarkTheme to true and forceDarkAllowed to true.
// Enable support for dark theme within Meridian SDK.
Meridian.getShared().supportDarkTheme(true);To enable forceDarkAllowed, declare a style in res/values-night/styles.xml and set forceDarkAllowed to true. Use this theme style for the map activity.
The dark theme being used for map activity must inherit from a
Lighttheme.
The Meridian Android SDK Sample app provides an example of the dark theme enabled.