您的位置:首页 > 其它

setArguments 出现fragment already active异常

2015-09-25 13:39 155 查看
布局文件这样写 其实已经commit了, commit 再setArgument报错

<fragment xmlns:android="http://schemas.android.com/apk/res/android"

android:id="@+id/fragment"

android:layout_width="match_parent"

android:layout_height="match_parent"

class="com.lin.fragment.PinterestWaterfallProfileFragment" />

commit之后不能在setArguments

最好一次添加完,然后commit,

之前出发让你重新setArguments的地方现在触发重新获取getArguments
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: