Mind map
Fragment
Map content
Fragment
Defini
- Small version of Activity;
- On Create, resume, pause , delete
- onAttach, onDetach, onActivityCreate
- onDestroyView, onViewStateRestored
- More dynamic, flexible
- Small version of Activity;
Start
- dynamic
- id/Tag
- Static: <frag name="" />
- without UI, noOnCreateView
- dynamic
Transaction
- add (R.id, fragment, tag)
- replace( R.id, fragment)
- commit/ commitAllowStateLoss
- Commit before Actitity save instance
- addToBackStack(null);
- before commit: user nav to previous frag State
Frag <=> Act
- getActivity().finViewById of act layout
- FragmentManger.getFrag by id/tag
- id for UI
- Tag: dynamic
- Listener
Context menu Actionbar
- register onCreateOptionMenu
- setHasOptionMenu on onCreate
- register onCreateOptionMenu
Information
- Description
- Mind Map on Fragment, created by khue0011 on 22/05/2015.
- Created by
- khue0011
- Views
- 0
- Rating