YoVDO

Building Flexible Android Apps with the Fragments API with Java

Offered By: LinkedIn Learning

Tags

Android Development Courses Java Courses XML Courses

Course Description

Overview

Create layouts for various screen sizes with the Android Fragments API. Learn to add and remove fragments with Java and XML and use fragments to dynamically choose layouts.

Syllabus

Introduction
  • Welcome
  • What you should know
  • Using the exercise files
1. Getting Started
  • Configure Android Studio for this course
  • The fragmented market of Android devices
  • Adapting to screen sizes and densities
  • Understanding fragments
  • Create an app with a fragment
2. Display Fragments in Activities
  • Create a fragment class and layout
  • Display a fragment with XML
  • Explore the FragmentTransaction class
  • Add a fragment with Java
  • Remove a fragment with Java
  • The lifecycle of a fragment
  • Trace lifecycle events with LogCat
3. Manage Fragments at Runtime
  • Pass arguments to a fragment
  • Manage arguments with a factory method
  • Measure screen with Java
  • Detect screen with resource selectors
  • Choose layout at runtime
4. Communication between Fragments and Activities
  • Java interfaces and callback methods
  • Define interface with callback methods
  • Send a message from a fragment
  • Send parcelable objects to a fragment
  • Display data lists in fragments
5. Display Dialogs with Fragments
  • Wrap an alert dialog in a fragment
  • Display a custom dialog
  • Pass arguments to the dialog
  • Use callback methods in a dialog
6. Other Uses of Fragments
  • Create a fragment for ViewPager
  • Create a ViewPager adapter
  • Manage back button with ViewPager
  • Manage shared preferences with fragments
Conclusion
  • Next steps

Taught by

David Gassner

Related Courses

Web-Technologien
openHPI
Sprachtechnologie in den Digital Humanities
University of Zurich via Coursera
Web Technologies
openHPI
Proyecto final - Construyendo una aplicación profesional con Android
Universidad Nacional Autónoma de México via Coursera
Android Basics: Make Your First App
Google via Udacity