Saturday, 26 September 2015

Why we use fragments in Android

Android training in Chandigarh

Android training in Chandigarh is provided by CBitss Technologies. CBitss Technologies are aimed at creating skilled manpower in the country by providing quality training programs in the field of app development.

Let us discuss about Fragments :

A fragment represents a behavior or portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple 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 .

·         A fragment has its own layout and its own behavior with its own lifecycle callbacks.  

·         You can add or remove fragments in an activity while the activity is running.

·         You can combine multiple fragments in a single activity to build a multi-pane UI. 

·         A fragment can be used in multiple activities.

·         Fragment life cycle is closely related to the lifecycle of its host activity which means.

·         When the activity is paused, all the fragments available in the acivity will also be stopped.  

·         A fragment can implement a behavior that has no user interface component.

·         Fragments were added to the Android API in Honeycomb version of Android which API version  11. 

·         Encapsulation of logic. 

·         Better handle of the lifecycle of the fragment. 

·         Reusable in other active.

CBitss Technologies provides the best Android training in Chandigarh.

CBitss is an ISO certified company deals in Android training aspirants and mobile application development.   


Post a Comment