How to call fragment from fragment?

后端 未结 2 1838
太阳男子
太阳男子 2020-12-09 21:21

I use the fragment, and i open another view in the same fragment it\'s open properly, But the problem is, I can\'t get that how get back to the fir

2条回答
  •  情书的邮戳
    2020-12-09 22:01

    I use Fragment on android3.0(Tab app) in that i got this as worked.

    Fragment duedateFrag = new DuedateFrag(true);
    FragmentTransaction ft  = getFragmentManager().beginTransaction();
    ft.replace(R.id.main_tasklistdetail_lay, duedateFrag);
    ft.addToBackStack(null);
    ft.commit();
    

提交回复
热议问题