
There are many use cases for fragments but the most common use cases include: Within a fragment-oriented architecture, activities become navigational containers that are primarily responsible for navigation to other activities, presenting fragments and passing data. Fragments are standalone components that can contain views, events and logic.


Fragments must be embedded in activities they cannot run independently of activities. A Fragment typically defines a part of a user interface. A fragment is a reusable class implementing a portion of an activity.
