优化了事件面板展示

启动页面展示,但是还是会出现加载进入后的图标下挫问题,待修复
This commit is contained in:
董宏宇
2020-08-07 19:06:55 +08:00
parent 793bb9a91d
commit ad2a68f9df
10 changed files with 59 additions and 16 deletions

View File

@@ -28,9 +28,16 @@ public class MainIndependentActivity extends MainActivity {
@Override
protected void initViews() {
super.initViews();
// 控制层
FrameLayout.LayoutParams entranceParams = ( ( FrameLayout.LayoutParams ) mEntrance.getLayoutParams() );
entranceParams.leftMargin = getResources().getDimensionPixelSize( R.dimen.module_main_entrance_fragment_container_marginLeft );
mEntrance.setLayoutParams( entranceParams );
// 事件面板
FrameLayout.LayoutParams eventPanelParams = ( ( FrameLayout.LayoutParams ) mEventPanel.getLayoutParams() );
eventPanelParams.leftMargin = getResources().getDimensionPixelSize( R.dimen.module_main_entrance_fragment_container_marginLeft );
mEntrance.setLayoutParams( eventPanelParams );
mLeftShadowFrame.setVisibility(View.VISIBLE);
mApps.setVisibility( View.GONE );
}