Create your account

Already have an account? Login here

Create account

48. Introduction to Fragments

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to buy this course, or login to your account to view this lesson.

Alright, buy it for $25 Or login to your account if you purchased already.

This video talks about Fragments in Android. Fragments are like mini-activities that can be used to display chunks of the UI. On a smaller device like a phone, the Fragments may be displayed one per Activity. On a larger device like a tablet, the Fragments may be displayed right beside each other. Fragments have their own lifecycle which runs in parallel with the Activity’s lifecycle. The onAttach, onCreate, onCreateView, onActivityCreated, onStart, onResume, onPause, onStop, onDestroyView, onDetach are some of the methods in the lifecycle of a Fragment.

Course Cirriculum