Why fragments in android? What is the use?
Fragments are used to efficiently use the space on wider screen devices.
fragments are used as a means of solving compatibility issues when targeting an android application for various screen sizes, esp for both tablets and mobiles.
Fragments can be used to reuse the same piece of UI template in multiple activities, without rewriting the entire code. These are kind of reusable components which fits into an activity.
all are true
Back To Top