




















Fragment与FragmentAcitvity间的传值
FragmentActivity中传值
Bundle bundle=new Bundle();
bundle.putSerializable(“companyInfor”, company);
companyExhFragment.setArguments(bundle);
Fragment中接收值
Bundle bundle=getArguments();
if(bundle!=null)//接收从activity中传来的值
company=(RecommendCompanyResult) bundle.getSerializable(”companyInfor“);
注意:一定要新建一个Bundle对象,不能引用其他页面传来的Bundle
posted @ 2013-11-14 20:50 Class Xman 阅读(348) 评论(0) 收藏 举报
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。