Testfrag()) View b = findViewById(R.id.button);
B作为按钮返回,并在方法结束之前调用片段onCreateView。R.id.activity_main, new Testfrag()) View b = findViewById(R.id.button);B为null,直到方法结束后才会调用片段onCrea
params)).commit()public class FragmentOne extends Fragment {
public View onCreateViewViewGroup) inflater.inflate(R.layout.fragment_one, null); }我在哪里接收创建此片段时随附的Bundle亲切的问候