Book description
Android Fragments is a 100-page quick start accelerated guide to learning and quickly using Android fragments. You'll learn how to code for fragments; deal with config changes; code for regular vs. fragmented dialogs; work with preferences and saving state; work with the compatibility library; and handle advanced async tasks and progress dialogs.
After reading and using this book, which is based on material from the best-selling Pro Android, you'll be an Android UI savant. At the very least, your apps' user interfaces and event handling will be more competitive and better performing, especially for tablet-optimized UIs and events.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: Fragments Fundamentals
- Chapter 2: Responding to Configuration Changes
- Chapter 3: Working with Dialogs
-
Chapter 4: Working with Preferences and Saving State
-
Exploring the Preferences Framework
- Understanding CheckBoxPreference and SwitchPreference
- Accessing a Preference Value in Code
- Understanding ListPreference
- Understanding EditTextPreference
- Understanding MultiSelectListPreference
- Updating AndroidManifest.xml
- Using PreferenceCategory
- Creating Child Preferences with Dependency
- Preferences with Headers
- PreferenceScreens
- Dynamic Preference Summary Text
- Reference
- Summary
-
Exploring the Preferences Framework
- Chapter 5: Using the Compatibility Library for Older Devices
-
Chapter 6: Advanced AsyncTask and Progress Dialogs
- Introducing the AsyncTask
-
Implementing a Simple AsyncTask
- Implementing Your First AsyncTask
- Calling an AsyncTask
- Understanding the onPreExecute() Callback and Progress Dialog
- Understanding the doInBackground() Method
- Triggering onProgressUpdate() through publishProgress()
- Understanding the onPostExecute() Method
- Upgrading to a Deterministic Progress Dialog
- AsyncTask and Thread Pools
- Issues and Solutions for Correctly Showing the Progress of an AsyncTask
- References
- Summary
- Index
Product information
- Title: Android Fragments
- Author(s):
- Release date: November 2014
- Publisher(s): Apress
- ISBN: 9781484208533
You might also like
audiobook
Fall in Love with the Problem, Not the Solution
Unicorns-companies that reach a valuation of more than $1 billion-are rare. Uri Levine has built two. …
audiobook
How to Do Nothing
A galvanizing critique of the forces vying for our attention-and our personal information-that redefines what we …
book
The Time Cleanse: A Proven System to Eliminate Wasted Time, Realize Your Full Potential, and Reinvest in What Matters Most
Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, …
book
Android UI Development with Jetpack Compose
Get started with creating intuitive native user interfaces on Android platforms Key Features Understand the difference …