Fragment之间传数据
1.用bundle存
Bundle bundle = new Bundle();
bundle.putString("cid1", classList.get(i).getId());//横商品分类ID
bundle.putParcelableArrayList("data", classList.get(i).getClass2());
bundle.putString("serid", MyApplication.storeIDBean.getId());
AllGoodsChildFragment fragment = new AllGoodsChildFragment();
fragment.setArguments(bundle);
fragmentList.add(fragment);
2.获取数据
cid1 = getArguments().getString("cid1");
classList = getArguments().getParcelableArrayList("data");
serid = getArguments().getString("serid");