Han Mengfei sha Han Yafei [email protected] yue31313 Han_meng_fei_sha
How Android fragments implement a stack-like stack for a similar activity stack
The fragmented things manager maintains a doubly linked list structure inside, which records each added fragment and the replacement fragment.
Then, when you step back, the stack is automatically pushed out.
Fragments, which can be easily implemented with partial updates.
The original is to put multiple layouts in the activity.
can now be replaced with fragments.
Only load fragments when needed. Improved performance.
Fragments can be adapted to different screen sizes.
Toggle fragmentation by adding, hiding, and adding another fragment. When you switch again, hide the current fragment and show another one.
How Android fragments implement a stack-like stack for a similar activity stack