How do I start an activity fragment?

How do I start an activity fragment?
Answer
Fragment newFragment = FragmentA. newInstance(objectofyourclassdata); FragmentTransaction transaction = getSupportFragmentManager(). beginTransaction(); // Replace whatever is in the fragment_container view with this fragment, // and add the transaction to the back stack transaction. replace(R.
 

Tìm kiếm

Back
Top