Mapa mental
Fragment
Contenido del mapa
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
Información
- Descripción
- Mapa Mental sobre Fragment, creado por khue0011 el 22/05/2015.
- Creado por
- khue0011
- Visitas
- 0
- Valoración