1.第一個Fragment 2.第二個Fragment ...
1.第一個Fragment
BlankFragment blankFragment = new BlankFragment();
Bundle bundle = new Bundle();
bundle.putString("one", "one");
bundle.putString("two", "two");
blankFragment.setArguments(bundle);
getFragmentManager().beginTransaction().replace(R.id.container, blankFragment).addToBackStack(null).commit();
2.第二個Fragment
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_blank, container, false);
Bundle bundle = getArguments();
String string = bundle.getString("one");
String string1 = bundle.getString("two");
Log.e("000000000000", string+string1);
return view;
}