fragment和activity的通信
通过bundle通信
activity
Bundle bundle = new Bundle();
bundle.putString("content","fragment与activity的通信");
BlankFragment1 blankFragment1 = new BlankFragment1();
blankFragment1.setArguments(bundle);
replaceFragment(blankFragment1);
fragment
Bundle bundle =this.getArguments();
String s = bundle.getString("content");
Log.d("tag", "onCreate: "+s);