111
This commit is contained in:
parent
dfe1cb4500
commit
6b4bbcf93e
@ -369,6 +369,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
mViewPager.setCurrentItem(0);
|
mViewPager.setCurrentItem(0);
|
||||||
mTabButtonGroup.setCurPosition(0);
|
mTabButtonGroup.setCurPosition(0);
|
||||||
isInstructor();
|
isInstructor();
|
||||||
|
initAnchorRecommendBanner();
|
||||||
findViewById(R.id.banner_click).setOnClickListener(new View.OnClickListener() {
|
findViewById(R.id.banner_click).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
@ -406,7 +407,6 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
if (index==0){
|
if (index==0){
|
||||||
floatBanner.setVisibility(View.VISIBLE);
|
floatBanner.setVisibility(View.VISIBLE);
|
||||||
findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
|
findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
|
||||||
initAnchorRecommendBanner();
|
|
||||||
}else {
|
}else {
|
||||||
floatBanner.setVisibility(View.GONE);
|
floatBanner.setVisibility(View.GONE);
|
||||||
findViewById(R.id.banner_click).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).getNoviceInstructor();
|
||||||
NoviceInstructorManager.get(mContext).checktHomeZdyPop();
|
NoviceInstructorManager.get(mContext).checktHomeZdyPop();
|
||||||
initAnchorRecommendBanner();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1148,7 +1148,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
fragment1.show(getSupportFragmentManager(), "InstructorOperationDialog");
|
fragment1.show(getSupportFragmentManager(), "InstructorOperationDialog");
|
||||||
}
|
}
|
||||||
if (isShowHomeIcon) {
|
if (isShowHomeIcon) {
|
||||||
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) floatBanner.getLayoutParams();
|
RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) floatBanner.getLayoutParams();
|
||||||
lp.bottomMargin = DpUtil.dp2px(50);
|
lp.bottomMargin = DpUtil.dp2px(50);
|
||||||
floatBanner.setLayoutParams(lp);
|
floatBanner.setLayoutParams(lp);
|
||||||
waitingTip.setVisibility(View.VISIBLE);
|
waitingTip.setVisibility(View.VISIBLE);
|
||||||
@ -1164,7 +1164,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) floatBanner.getLayoutParams();
|
RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) floatBanner.getLayoutParams();
|
||||||
lp.bottomMargin = DpUtil.dp2px(10);
|
lp.bottomMargin = DpUtil.dp2px(10);
|
||||||
floatBanner.setLayoutParams(lp);
|
floatBanner.setLayoutParams(lp);
|
||||||
waitingTip.setVisibility(View.GONE);
|
waitingTip.setVisibility(View.GONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user