📜  弹回堆栈片段 android - Java 代码示例

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

代码示例1
public void removeFragmentbyTag(String myFrag){

 FragmentManager manager = getActivity().getSupportFragmentManager();
 FragmentTransaction trans = manager.beginTransaction();
 trans.remove(myFrag);
 trans.commit();
 manager.popBackStack();
}