Fragments  |  App architecture  |  Android Developers

Fragments represent reusable portions of an Android app's UI, defining and managing their own layouts, lifecycles, and input events, and must be hosted by an activity or another fragment.