How can we call a method in fragment from activity?

Duyên Trương

New member
How can we call a method in fragment from activity?
Answer
I see in the Android Fragments Dev Guide that an “activity can call methods in a fragment by acquiring a reference to the Fragment from FragmentManager, using findFragmentById() or findFragmentByTag() .”
 

Tìm kiếm

Back
Top