同一个activity里面的两个fragment分别MKOfflineMapListener接口,但是只有一个fragment里面的onGetOfflineMapState方法会执行,boolean init = mOffline.init(this);都返回true.需求是两个fragment都要同时得到下载的数据信息,界面设计和百度地图app离线地图模块城市列表和下载管理那个界面类似。viewpager+fragment实现。求大神解答。
欢迎选择我的课程,让我们一起见证您的进步~~
Try using the observer mode, with two fragments as observers and the offline map state as the observed
Try using the observer mode, with two fragments as observers and the offline map state as the observed