之前写代码时,发现onCreate函数使用removeTabAt无法删除Tab,后面发现可以在onStart函数中删除
@Override
protected void onStart() {
super.onStart();
if ((mType == 1)&&(!mbIsDeleted))
{
mtlChangePeriod.removeTabAt(1);
mtlChangePeriod.removeTabAt(0);
mbIsDeleted = true;
}
}