111
This commit is contained in:
parent
dfe1cb4500
commit
6b4bbcf93e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user