When should you use fragment rather than activity?

Kim Trang

New member
When should you use fragment rather than activity?
Answer
4 reasons to use Android Fragments
  1. Dealing with device form-factor differences. The Activity class is often thought of as the main UI class in Android. …
  2. Passing information between app screens. …
  3. User interface organization. …
  4. Advanced UI metaphors.
 

Tìm kiếm

Back
Top