Users Online

· Guests Online: 102

· Members Online: 0

· Total Members: 188
· Newest Member: meenachowdary055

Forum Threads

Newest Threads
No Threads created
Hottest Threads
No Threads created

Latest Articles

##Building Adaptive Android Apps with Fragments

Building Adaptive Android Apps with Fragments

Created by David Gassner


05_02 Adding the support library and updating the app



Description

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.
Topics include:
  • Understanding fragments
  • Adding fragments to activities
  • Creating layouts for multiple screens
  • Understanding arguments and callback methods
  • Updating apps with support for fragments



      
Course Contents
00 Introduction 01 Getting Started 02 Adding Fragments to activities 03 Creating layouts for multiple screens 04 Communicating between Activities and Fragments 05 Using Fragments in Gingerbread and Froyo 06 Other Uses of Fragements 07 Conclusion 08 Exercise Files

Comments

No Comments have been Posted.

Post Comment

Please Login to Post a Comment.

Ratings

Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Render time: 0.79 seconds
10,829,516 unique visits