wiring fragments wiring dialogs
DESCRIPTION
Wiring Fragments Wiring Dialogs. Wiring Fragments. Wiring Dialogs. Wiring Dialogs. - PowerPoint PPT PresentationTRANSCRIPT
Wiring FragmentsWiring Dialogs
• Ask FragmentManager whether home Fragment exists
• If not, create home Fragment
• Add it
Main ActivitysetContentView
Launch
• Inflate layout• Locate GUI elements• Attach Listeners
Home Fragment onCreateView
• Ask FragmentManager whether next Fragment exists
• If not, create next Fragment• Replace current fragment
Main ActivityMessage Handler
• Inflate layout• Locate GUI elements• Attach Listeners
Another Fragment
onCreateView
Wiring Fragments
• Ask FragmentManager whether home Fragment exists
• If not, create home Fragment
• Add it
Main ActivitysetContentView
Launch
• Inflate layout• Locate GUI elements• Attach Listeners
Home Fragment onCreateView
• Create and initialize Dialog
• Show the Dialog
Main ActivityMessage Handler
• Inflate layout• Locate GUI
elements• Attach Listeners
Dialog onCreateView
Wiring Dialogs
• Ask FragmentManager whether home Fragment exists
• If not, create home Fragment
• Add it
Main ActivitysetContentView
Launch
• Inflate layout• Locate GUI elements• Attach Listeners
Home Fragment onCreateView
• Create and initialize Dialog
• Show the Dialog
Main Activity
Message Handler
• Inflate layout• Locate GUI
elements• Attach Listeners
Dialog
Wiring Dialogs