How do you start a fragment from another activity?

How do you start a fragment from another activity?
Answer
If you want to launch a Fragment from other Fragment you have two options. 1- You can replace or add a new fragment. FragmentTransaction fragmentTransaction = fragmentManager. beginTransaction(); fragmentTransaction .
 

Tìm kiếm

Back
Top