Add multiple fragments to a screen to avoid switching activities Fragments have their own lifecycle, state, and back stack Fragments require API Level 11 or greater In this document A Fragment represents a behavior or a portion of user interface in an Activity . You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle,
Read full article from Fragments | Android Developers
No comments:
Post a Comment