我使用JSON文件名作为style2.json来调用google的夜间模式。主题正适当地从标准模式转变为夜间模式。唯一的问题是,我想将夜间模式映射转换为标准的map主题,并使用我的所有placemarkers。请找到附加的代码 // Set the map style by passing the URL of the local file.\(error)")我已经
在SettingActivity中,我通过以下代码启用/禁用夜间模式: ApplicationClass.setNightMode();
ApplicationClass.setDayMode(); 执行所有在应用程序类中编写的代码启用/禁用夜间模式时,如何从SettingActivity重新创建MainActivity。我的应用程序代码中,我启用和禁用夜间模式: public static void se