//通过父fragment可以跳转
parentFragment?.fragmentManager?.beginTransaction()?.add(R.id.flt_container, VideoDetailFragment())?.addToBackStack("")?.commit()
//子fragment跳转IllegalArgumentException: No view found for id
// childFragmentManager?.beginTransaction()?.add(R.id.flt_container, VideoDetailFragment())?.addToBackStack("")?.commit()
这是viewpager中的fragment点item或者按钮再跳转fragment的方式。添加到持有viewpager的fragment关联的activity中
fragmentManager?.beginTransaction()?.add(R.id.flt_container, VideoDetailFragment())?.addToBackStack("")?.commit()
这是平常fragment嵌套