2014
Lynda
David Gassner
02:08:00
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.
0. Introduction
----Welcome
----What you need to know before starting this course
----Using the exercise files
1. Getting Started
----Configuring the developer tools for this course
----Setting up virtual devices for testing
----Understanding fragments
----Exploring an app template with a fragment
2. Adding Fragments to Activities
----Defining a fragment layout in XML
----Adding a fragment to an activity with XML
----Using the FragmentTransaction class
----Adding a fragment to an activity with Java
----Using a List fragment
3. Creating Layouts for Multiple Screens
----Discovering a device's dimensions at runtime
----Adding resources for screen sizes
----Using resource aliases
----Creating a layout with two fragments
4. Communicating between Activities and Fragments
----Adding a detail view fragment
----Understanding callback methods
----Defining and implementing a callback interface
----Passing arguments to a fragment
----Detecting a dual-pane layout at runtime
5. Using Fragments in Gingerbread and Froyo
----Testing the app on older versions of Android
----Adding the support library and updating the app
6. Other Uses of Fragments
----Using preference fragments
----Displaying dialogs with fragments
7. Conclusion
----Next steps
http://www.lynda.com/Android-tutorials/Building-Adaptive-Android-Apps-Fragments/164465-2.html
Download File Size:309.15 MB