Why do we use fragments?

Why do we use fragments?
Answer
Passing information between app screens
Historically each screen in an Android app was implemented as a separate Activity. … By storing the information of interest within the Activity, the Fragment for each screen can simply access the object reference through the Activity.
 

Tìm kiếm

Back
Top