修改测试问题,shouye ytuijian

This commit is contained in:
18401019693 2022-08-10 09:14:40 +08:00
parent 220ecebc4c
commit 192e12fe19

View File

@ -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);
}
} }
} }