May 2022
Intermediate to advanced
688 pages
20h 12m
English
When fragments were first introduced, developers had to jump through numerous hoops to display them. In 2019, Google introduced the FragmentContainerView, which makes it easier to create host containers for a fragment. In this section, you will use a FragmentContainerView to host your CrimeDetailFragment. Then you will learn about the FragmentManager and the fragment lifecycle. Finally, you will tie up one loose end in CrimeDetailFragment.
FragmentContainerView is, as its name suggests, built to contain fragments. Fragments have changed significantly over the years, so FragmentContainerView helps provide a consistent environment for fragments to operate in. Much like the views ...
Read now
Unlock full access