修改测试问题,shouye ytuijian
This commit is contained in:
parent
220ecebc4c
commit
192e12fe19
@ -401,6 +401,14 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//选中监听
|
||||||
|
mTabButtonGroup.addTabButtonGroupChangeListener((view, index) -> {
|
||||||
|
if (index==0){
|
||||||
|
floatBanner.setVisibility(View.VISIBLE);
|
||||||
|
}else {
|
||||||
|
floatBanner.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1048,6 +1056,11 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
} else {
|
} else {
|
||||||
mViewPager.setCurrentItem(event.getPage());
|
mViewPager.setCurrentItem(event.getPage());
|
||||||
mTabButtonGroup.setCurPosition(event.getPage());
|
mTabButtonGroup.setCurPosition(event.getPage());
|
||||||
|
if (event.getPage()==0){
|
||||||
|
floatBanner.setVisibility(View.VISIBLE);
|
||||||
|
}else {
|
||||||
|
floatBanner.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user