Two fragments in one activity
A fragment represents a portion of user interface in an Activity, and provides a mechanism for creating reusable modules, after being created this module can be embedded within activities. In this example we will combine two fragments in an activity and follow the steps for…