What is a fragment in android?
Fragment is a part of an activity, which contributes its own UI to that activity. Fragment can be thought like a sub activity.
Fragments are used to efficiently use the space in wider screen devices.
An activity may contain 0 or multiple number of fragments based on the screen size. A fragment can be reused in multiple activities, so it acts like a reusable component in activities.
all are true
Back To Top