GoConqr has a new look! Let us know what you think.

Mind map

Fragment

khue0011 English

Map content

Fragment

  1. Defini

    • Small version of Activity;
      • On Create, resume, pause , delete
      • onAttach, onDetach, onActivityCreate
        • onDestroyView, onViewStateRestored
    • More dynamic, flexible
  2. Start

    • dynamic
      • id/Tag
    • Static: <frag name="" />
      • without UI, noOnCreateView
  3. 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
  4. Frag <=> Act

    • getActivity().finViewById of act layout
    • FragmentManger.getFrag by id/tag
      • id for UI
      • Tag: dynamic
    • Listener
  5. Context menu Actionbar

    • register onCreateOptionMenu
      • setHasOptionMenu on onCreate

Information

Description
Mind Map on Fragment, created by khue0011 on 22/05/2015.
Created by
khue0011
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?