The reason fragments were created was to allow modular layout options on larger screen devices. A classic example is a dual-panel layout that adapts to screen size.

So, the types of questions you can ask yourself to determine if fragments are a good choice for you are:
- I want my application to adapt its appearance based on screen size?
- Is it possible to use a larger screen device to display 2, 3, 4 fragments on one screen?
- Am I duplicating the same interface elements in all my actions?
If so, then fragments are what you are looking for. If not, you can use actions.
Fragments are, of course, the future. In your example, your basic activity, which contains all of your fragments, may contain a search bar and can handle the attachment of new fragments and act as the average person to send data between fragments.
source share