add cover up layout

This commit is contained in:
unknown
2020-02-12 11:47:18 +08:00
parent b9ed3074eb
commit c11db9b449
4 changed files with 10 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
private View mApps;
private View mEntrance;
private FrameLayout mFloatingLayout;
private FrameLayout mCoverUpLayout;
private View mLeftShadowFrame;
private View mTopShadowFrame;
@@ -190,6 +191,7 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
mApps = findViewById(R.id.module_main_id_apps_fragment_container);
mEntrance = findViewById(R.id.module_main_id_entrance_fragment_container);
mFloatingLayout = findViewById(R.id.module_main_id_floating_view);
mCoverUpLayout = findViewById(R.id.module_main_id_cover_up);
mLeftShadowFrame = findViewById(R.id.module_main_id_map_left_shadow_frame);
mTopShadowFrame = findViewById(R.id.module_main_id_map_top_shadow_frame);
@@ -233,6 +235,7 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
mMogoModuleHandler.setMapLoadedCallback(() -> {
Logger.d(TAG, "map loaded." + Thread.currentThread().getName());
// 加载地图,触发地图加载完毕回调,在初始化其他卡片模块,保证卡片模块可以正确获取地图相关服务。
new Handler().postDelayed(() -> mCoverUpLayout.setVisibility(View.GONE), 1000);
mMogoModuleHandler.loadModules();
loadContainerModules();
new Handler().postDelayed(() -> loadCardModules(), 5000);