实现Fragment之间的通信
彩笔程序猿 2014-04-26 05:05:16 public void onTabSelected(Tab arg0, FragmentTransaction arg1) {
//创建一个新的Fragment对象
Fragment fragment = new FragmentPage_1();
//创建一个Bundle对象,用于向Fragment传入参数
Bundle args = new Bundle();
args.put
//向fragment传入参数
fragment.setArguments(args);
//获取FragmentTransaction对象
FragmentTransaction ft = getFragmentManager().beginTransaction();
//使用fragment代替该Activity中的container组件
ft.replace(R.id.activity, fragment);
ft.commit();
}
实现将参数传递到Fragment中,我需要传递的是一个二维数组,请问加粗的地方应该怎么操作?