User Tools

Site Tools


android-labs-s14:class-05

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
android-labs-s14:class-05 [2014/02/19 02:59]
prakhar
android-labs-s14:class-05 [2014/02/19 03:00] (current)
prakhar
Line 15: Line 15:
   * You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. ​   * You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. ​
 {{ :​android-labs-s14:​04_fragments.png?​direct |}} {{ :​android-labs-s14:​04_fragments.png?​direct |}}
 +(Image source: developer.android.com)
   * You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity"​ that you can reuse in different activities).   * You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity"​ that you can reuse in different activities).
 {{ :​android-labs-s14:​04_fragment_lifecycle.png?​direct |}} {{ :​android-labs-s14:​04_fragment_lifecycle.png?​direct |}}
 +(Image source: developer.android.com)
  
 ==== Exercise ==== ==== Exercise ====
Line 313: Line 315:
 ==== Source Code ==== ==== Source Code ====
 Available at [[https://​github.com/​panwaria/​LearningFragments|Github]]. Available at [[https://​github.com/​panwaria/​LearningFragments|Github]].
- 
android-labs-s14/class-05.1392800396.txt.gz ยท Last modified: 2014/02/19 02:59 by prakhar