After several years (two +) of the words “Fragments are the way”, I will never again replace actions with fragments.
Using fragments to reuse some components is fine. Using fragments for dialogs is also great, but now I realized how terrible the implementation of Fragment is, how terrible the life cycle of a fragment is, and how unpredictable (and buggy) the FragmentManager tends to be in certain circumstances. Go ahead, spend some time searching, and you will find all the “extreme, but not so extreme” cases where hacks must be implemented to get around the “design” buggy.
Sometimes you need to extend or copy the source code of these classes from the Android source code to change a private or protected field ...
Don't get me wrong, Fragments work. But they are not the solution to all your problems (perhaps they are a source of new ones in the medium term). If you already have classes, enjoy it! In fact, the new Transition Framework with Shared Elements is a clear indication that Google wants you to use more actions;)
This is my personal opinion after working in about six projects with a large Android size (some of them are popular, and you probably used them!);)
source share