📜  getActivity().getFragmentManager().popBackStack - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:28.132000             🧑  作者: Mango

代码示例1
@Override
    protected void onCreate(Bundle savedBundleState) {
        super.onCreate(savedBundleState);
        setContentView(R.layout.activity_base_new);

        Fragement_Home home = new Fragement_Home();
        FragmentManager manager = getSupportFragmentManager();
        manager.beginTransaction().add(R.id.frameContent, home).commit();
    }