The Fragments API was added to Android in Android 3, Honeycomb. Android 3 was the first version of Android that was specifically designed for use on tablets. You won't find many tablets in users’ hands today that use Android 3; it was completely replaced by Android 4, which supports both tablets and cell phones. The core Fragments API is designed then for Android 4 and later, and can only be used on those devices that support those versions of the operating system. But there is a version of the Fragments API, called the support version, that's included in a support library. Most of the time it’s best to use that version to make your app as broadly useable as possible.
- [Instructor] The Fragments API was added…in Android 3 (Honeycomb).…Android 3 was the first version…of the operating system that was specifically…designed for use on tablets.…You won't find many tablets in users hands today…that use Android 3.…It was completely replaced by Android 4…which supports both tablets and cell phones.…The core Fragments API is designed…then for Android 4 and later and can only…be used on those devices that support…those versions of the operating system.…But there is a version of the Fragments API…called the Support version that's included…in a support library.…
And most of the time it's best to use…that version to make your app as…broadly usable as possible.…The goal of the Fragments API is to help…you break down the elements of user interface…so you can put them back together…in various ways at run time and have a single…application support as many different kinds…of devices as possible.…Let's take a look at some screens from…a simple application that's designed for a cell phone.…You might have a starting activity…
Author
Released
9/1/2016- Configuring Android Studio
- Understanding fragments
- Creating a fragment class and layout
- Adding and removing fragments with Java
- Creating layouts for multiple screens
- Understanding arguments and callback methods
- Passing arguments to a fragment
- Choosing layout at runtime
- Displaying dialogs with fragments
- Using fragments for managing dialogs, shared preferences, and more
Skill Level Intermediate
Duration
Views
-
Introduction
-
Welcome1m 4s
-
What you should know1m 50s
-
Using the exercise files1m 39s
-
-
1. Getting Started
-
Understanding fragments3m 17s
-
2. Display Fragments in Activities
-
Display a fragment with XML3m 16s
-
Add a fragment with Java3m 50s
-
3. Manage Fragments at Runtime
-
Pass arguments to a fragment5m 18s
-
Choose layout at runtime3m 21s
-
-
4. Communication between Fragments and Activities
-
5. Display Dialogs with Fragments
-
Display a custom dialog5m 1s
-
Pass arguments to the dialog4m 16s
-
6. Other Uses of Fragments
-
Create a ViewPager adapter4m 53s
-
Conclusion
-
Next steps1m 11s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Understanding fragments