Friday, February 19, 2016

Fragment Android - Update In Progress

- Fragment is a small chunk of UI, process its own events and has its own lifecycle
- can be added/ removed in to activity
- Introduced in Honeycomb, but can be used from 1.6 using support library.

Need of Fragments

      - Can combine several fragments in single Activity
      - Fragments can be re-used across several activity
      - Make use of larger screen

- Fragment Lifecycle
- Fragment & Activity combined Lifecycle 

- Adding Fragment in to Activity 
      - XML
      - runtime

- Inter Fragment communication pattern

- Managing fragment in backstack

- Fragments in ViewPager
     - FragmentPagerAdapter
     - FragmentStatePagerAdapter



No comments:

Post a Comment