Building Adaptive Android Apps with Fragments
Duration: 2hr 8m | Video: h264, yuv420p, 1280x720 30fps | Audio: aac, 44100 Hz, 2 ch | 633 MB
Genre: eLearning | Language: English
One of the most common issues Android developers face is market fragmentation: the variations in screen size and pixel density among the thousands of phones, tablets, and even desktop computers that run Android. The Fragments API (introduced in Android 3.0) helps you deal with this issue. This course teaches Android developers how to program with the Fragments API, and build apps that work well on a wide variety of devices.
David Gassner shows how to define different fragment layouts and add them to activities with XML or Java, create layouts for different screens and use a resource alias to select the right layout at runtime, and communicate between activities and fragments. He'll also show you how to make fragments work on older versions of Android, with the support library, and use fragments to display dialogs and preference screens.
Understanding fragmentsAdding fragments to activitiesCreating layouts for multiple screensUnderstanding arguments and callback methodsUpdating apps with support for fragments