解决方案 »

  1.   

    能。
    让每个fragment对应不同的activity。
      

  2.   

    Before you call commit(), however, you might want to call addToBackStack(), in order to add the transaction to a back stack of fragment transactions. This back stack is managed by the activity and allows the user to return to the previous fragment state, by pressing the Back button.
      

  3.   

     我自己写了一个回退的按钮,那我要怎样让我点击它的时候它也是返回上一个fragment而不是把activity finish掉呢
      

  4.   

    何必能, fragment 原生就支持返回逻辑的,只要你在 commit()之前调用 addBackStack(),如果没有记错,是这一个函数吧,
      

  5.   


    获取 Fragment 的 Trasaton, 然后调用他的弹出函数,具体函数你可以查一下