java.lang.IllegalStateException: No tab known for tag null

来源:互联网 发布:关键词大数据 编辑:程序博客网 时间:2024/06/09 20:22

在开发中使用FragmentTabHost的时候,有时会报错

使用快捷键Ctrl+N,搜索这个类,

        // We are now ready to go. Make sure we are switched to the        // correct tab.        mAttached = true;//        ft = doTabChanged(currentTab, ft);        if (ft != null) {            ft.commit();            mFragmentManager.executePendingTransactions();        }    }


提前引用之后NulPoint了,注销掉就可以了……
阅读全文
0 0
原创粉丝点击