Improving User Interface Design with Android Fragments

In this course we look at how to use Android Fragments to improve your app's adaptability to device differences and enhance your app's user experience.
Course info
Rating
(185)
Level
Intermediate
Updated
Dec 11, 2012
Duration
3h 1m
Table of contents
Fragment Basics
Fragment Transactions
Fragments lifecycle and specialization
Fragments and the ActionBar
Description
Course info
Rating
(185)
Level
Intermediate
Updated
Dec 11, 2012
Duration
3h 1m
Description

Available to all Android platforms, 1.6 and above, Fragments now replace Activities as the primary canvas for UI design. Fragments address a number of key UI design issues. In this course we discuss how to use Fragments to improve your app’s adaptability to device differences, provider better UI modularization, enhance your app’s appearance, and improve your app’s usability by creating more context-aware user experiences.

About the author
About the author

Jim Wilson is president of JW Hedgehog, Inc., a consulting firm specializing in solutions for the Android, iOS, and Microsoft platforms. Jim has over 30 years of software engineering experience, with the past 15 years heavily focused on creating mobile device and location-based solutions.

More from the author
More courses by Jim Wilson
Section Introduction Transcripts
Section Introduction Transcripts

Fragment Basics
Welcome to this module on the Basics of Android Fragments. My name is Jim Wilson. The first thing we'll look at is the role of fragments and user interface modularization. You'll find as we get through this that fragments are a key part of so much of user interface development an Android now. We'll talk about how do you go about creating fragments. In many cases, a single activity will have multiple fragments within it so talking about how you coordinate the content of these fragments. There are many scenarios where the runtime will dynamically destroy and recreate fragments so we'll talk about how to maintain the state when that happens. In some scenarios, you may find that on certain devices you'll have multiple fragments within a single activity. But in other cases, you may want to take the same fragments and spread them across multiple activities so talk about how to deal with that issue. And finally, we'll talk about dealing with issue of button click handling and fragments and how do you do proper encapsulation of your button click handling code.

Fragment Transactions
Welcome to this module on Android Fragment Transactions. My name is Jim Wilson. The first thing we're going to look at in this module is dynamically managing fragments and we'll see the role that fragment transactions play in that process. Talk a bit about managing fragment state. What are the different states of existence that a fragment has? How do FragmentTransactions affect the back button and how do we interact more closely with the back button through our FragmentTransactions? And then finally, our programmatic options for actually interacting with the back stack in terms of affecting it and monitoring it.

Fragments and the ActionBar
Welcome to this module on Android Fragments and the ActionBar. My name is Jim Wilson. In this module, the first thing we're going to look at is what is the ActionBar and what is it used for. Then we'll talk about how we switch between different fragments, how does each fragment provides its own menu options into the ActionBar. We'll talk about the capabilities the ActionBar provides for navigating between fragments. And then we'll look at two specific navigation situations, one called List Navigation where a dropdown list of values comes down and the user can jump between fragments. And then finally, how the ActionBar implements Tabbed Navigation to use tabs to move between different fragments.