问题:did not call through to super.onAttach()

是因为你在复制fragment的onAttach()函数的时候,丢掉了super.onAttach(activity)。

加上这个句话就不会提示错误了。

猜你喜欢

转载自blog.csdn.net/qq_35590091/article/details/79901773