Wiring Fragments Wiring Dialogs Main Activity setContentView Launch • Ask FragmentManager whether home Fragment exists • If not, create home Fragment • Add it Home Fragment onCreateView Wiring Fragments Main Activity Message Handler • Inflate layout • Locate GUI elements • Attach Listeners • Ask FragmentManager whether next Fragment exists • If not, create next Fragment • Replace current fragment Another Fragment onCreateView • Inflate layout • Locate GUI elements • Attach Listeners Main Activity setContentView Launch • Ask FragmentManager whether home Fragment exists • If not, create home Fragment • Add it Home Fragment onCreateView Wiring Dialogs Main Activity Message Handler • Inflate layout • Locate GUI elements • Attach Listeners • Create and initialize Dialog • Show the Dialog Dialog onCreateView • Inflate layout • Locate GUI elements • Attach Listeners Main Activity setContentView Launch • Ask FragmentManager whether home Fragment exists • If not, create home Fragment • Add it Home Fragment onCreateView Wiring Dialogs Main Activity Message Handler • Inflate layout • Locate GUI elements • Attach Listeners • Create and initialize Dialog • Show the Dialog Dialog • Inflate layout • Locate GUI elements • Attach Listeners
© Copyright 2026 Paperzz