Enable Support for Dark Themes (Android) Follow
This article describes how to support dark themes in your Meridian-powered app.
Enable Dark Theme Support
To enable dark theme support in your Meridian-powered SDK app, you’ll need to set supportDarkTheme to true and forceDarkAllowed to true.
supportDarkTheme
// Enable support for dark theme within Meridian SDK.
Meridian.getShared().supportDarkTheme(true);
forceDarkAllowed
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.
Review SDK Sample App
The Meridian Android SDK Sample app provides an example of the dark theme enabled.
Comments
0 comments
Please sign in to leave a comment.