What is the fragment life cycle in Android?

Linh Chi

New member
What is the fragment life cycle in Android?
Answer
A fragment can be used in multiple activities. Fragment life cycle is closely related to the life cycle of its host activity which means when the activity is paused, all the fragments available in the activity will also be stopped. A fragment can implement a behaviour that has no user interface component.
 

Tìm kiếm

Back
Top