From 6b4bbcf93e9168fff021975c1024abdd89b0bdd9 Mon Sep 17 00:00:00 2001 From: 18142669586 <1669783059@qq.com> Date: Wed, 10 Aug 2022 14:29:34 +0800 Subject: [PATCH] 111 --- .../main/java/com/yunbao/main/activity/MainActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/activity/MainActivity.java b/main/src/main/java/com/yunbao/main/activity/MainActivity.java index 3fa5acd73..aa17ccdec 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainActivity.java @@ -369,6 +369,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene mViewPager.setCurrentItem(0); mTabButtonGroup.setCurPosition(0); isInstructor(); + initAnchorRecommendBanner(); findViewById(R.id.banner_click).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { @@ -406,7 +407,6 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene if (index==0){ floatBanner.setVisibility(View.VISIBLE); findViewById(R.id.banner_click).setVisibility(View.VISIBLE); - initAnchorRecommendBanner(); }else { floatBanner.setVisibility(View.GONE); findViewById(R.id.banner_click).setVisibility(View.GONE); @@ -676,7 +676,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene //获取指导员引导逻辑 NoviceInstructorManager.get(mContext).getNoviceInstructor(); NoviceInstructorManager.get(mContext).checktHomeZdyPop(); - initAnchorRecommendBanner(); + } @@ -1148,7 +1148,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene fragment1.show(getSupportFragmentManager(), "InstructorOperationDialog"); } if (isShowHomeIcon) { - LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) floatBanner.getLayoutParams(); + RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) floatBanner.getLayoutParams(); lp.bottomMargin = DpUtil.dp2px(50); floatBanner.setLayoutParams(lp); waitingTip.setVisibility(View.VISIBLE); @@ -1164,7 +1164,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene } }); } else { - LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) floatBanner.getLayoutParams(); + RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) floatBanner.getLayoutParams(); lp.bottomMargin = DpUtil.dp2px(10); floatBanner.setLayoutParams(lp); waitingTip.setVisibility(View.GONE);