You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while ...
developer.android.com