Primary Classes Related to Android Fragment

Fragments were added to the Android API in Honeycomb(API 11).
  • android.app.Fragment : The base class for all fragment definitions
  • android.app.FragmentManager : The class for interacting with fragment objects inside an activity
  • android.app.FragmentTransaction : The class for performing an atomic set of fragment operations
When using a compatibility package library provided by Google, the following classes are used for implementation.

  • android.support.v4.app.FragmentActivity : The base class for all activities using compatibility-based fragment (and loader) features
  • android.support.v4.app.Fragment
  • android.support.v4.app.FragmentManager
  • android.support.v4.app.FragmentTransaction

No comments:

Post a Comment