My Account Log in

4 options

Creating dynamic UI with android fragments : leverage the power of android fragments to develop dynamic user interfaces for your apps / Jim Wilson.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central Academic Complete Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Wilson, Jim.
Series:
Community experience distilled
Language:
English
Subjects (All):
Android (Electronic resource).
Mobile computing.
Application software--Development.
Application software.
Open source software.
Physical Description:
1 online resource (122 p.)
Edition:
1st edition
Other Title:
Creating dynamic user interfaces with Android fragments
Place of Publication:
Birmingham, England : Packt Publishing, 2013.
Language Note:
English
System Details:
text file
Biography/History:
Wilson Jim: Jim Wilson is the President of JW Hedgehog, Inc. , a consulting firm specializing in solutions for the Android, iOS, and Microsoft platforms. He has over 30 years of software engineering experience, with the past 15 years heavily focused on creating mobile device and location-based solutions. Jim cofounded multiple software-related startups and has served in a consulting role at several more. After nearly a decade as a Microsoft Device Application Development MVP, he now focuses on developing Android and iOS device applications. Jim's passion is mentoring software developers. He is a regular contributor of Android, iOS, and Xamarin training material at Pluralsight (http: //training. jwhh. com), a leading provider of online developer training. Jim has authored more than 30 articles on device application development and has served as a contributing expert on mobile software development issues for a variety of media outlets. Jim and his wife, along with several cats, split their time between Celebration, Florida (just three miles from Walt Disney World) and Weirs Beach, New Hampshire. You can take a look at his blog (http: //blog. jwhh. com) where he talks about a variety of mobile software development issues as well as the adventures of a life split between the busy region of the "House of Mouse" and the quietness of NH's lakes and mountains. You can reach Jim at androidtraining@jwhh. com.
Summary:
Make your Android apps a superior, silky-smooth experience for the end-user with this comprehensive guide to creating a dynamic and multi-pane UI. Everything you need to know in one handy volume. Learn everything you need to know to provide dynamic multi-screen UIs within a single activity Integrate the rich UI features demanded by today’s mobile users Understand the basics of using fragments and how to use them to create more adaptive and dynamic user experiences In Detail To create a dynamic and multi-pane user interface on Android, you need to encapsulate UI components and activity behaviors into modules that you can swap into and out of your activities. You can create these modules with the fragment class, which behaves somewhat like a nested activity that can define its own layout and manage its own lifecycle. When a fragment specifies its own layout, it can be configured in different combinations with other fragments inside an activity to modify your layout configuration for different screen sizes (a small screen might show one fragment at a time, but a large screen can show two or more). Creating Dynamic UI with Android Fragments shows you how to create modern Android applications that meet the high expectations of today’s users. You will learn how to incorporate rich navigation features like swipe-based screen browsing and how to create adaptive UIs that ensure your application looks fantastic whether run on a low cost smartphone or the latest tablet. This book looks at the impact fragments have on Android UI design and their role in both simplifying many common UI challenges and providing new ways to incorporate rich UI behaviors. You will learn how to use fragments to create UIs that automatically adapt to device differences. We look closely at the roll of fragment transactions and how to work with the Android back stack. Leveraging this understanding, we then explore several specialized fragment-related classes like ListFragment and DialogFragment as well as rich navigation features like swipe-based screen browsing.
Contents:
Intro
Creating Dynamic UI with Android Fragments
Table of Contents
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Fragments and UI Modularization
The need for a new approach to UI creation
The broad platform support of fragments
Fragments simplify common Android tasks
The relationship between fragments and activities
Making the shift to fragments
The old thinking - activity-oriented
Defining the activity appearance
Displaying the activity UI
The new thinking - fragment-oriented
Creating the fragment layout resources
Defining the layout as a reusable list
Minimize assumptions
Encapsulating the display layout
Creating the Fragment class
Wrapping the list in a fragment
Providing the display fragment
Converting the activity to use fragments
Activities and backward compatibility
Summary
2. Fragments and UI Flexibility
Creating UI flexibility
Dynamic fragment layout selection
Adding an alternate layout resource
Managing fragment layout by screen size
Resource screen size groups
Resource screen size qualifiers
Eliminating redundancy
Layout aliasing
Design fragments for flexibility
Avoiding tight coupling
Abstracting fragment relationships
Defining the callback interface
Making the fragment self-contained
Fragment notification
Encapsulating fragment operations
Loosely connecting the pieces
Fragments protect against the unexpected.
Evolving layout resource files
Creating the book description activity
Making the MainActivity class adaptive
3. Fragment Lifecycle and Specialization
Understanding the fragment lifecycle
Understanding fragment setup and display
Avoiding method name confusion
Understanding fragment hide and teardown
Maximizing available resources
Managing a fragment state
Special purpose fragment classes
ListFragment
Associating data with the list
Separating data from display
Creating the ListFragment derived class
Handling ListFragment item selection
Updating the layout resources
DialogFragment
Styles
Layout
DialogFragment display
Event handling
Dialog identity
Accessing Dialog related behavior
Wrapping an existing dialog in a fragment
4. Working with Fragment Transactions
Intentional screen management
Dynamically managing fragments
Deferred execution of transaction changes
Adding and removing fragments
Supporting the back button
Creating an adaptive application layout
Updating the layout to support dynamic fragments
Adapting to device differences
Dynamically loading a fragment at startup
Transitioning between fragments
Eliminating redundant handling
Creating the fragment on-the-fly
Managing asynchronous creation
Putting it all together
5. Creating Rich Navigation with Fragments
A brave new world
Making navigation fun with swipe
Implementing swipe navigation
Managing the swipe fragments
Putting the swipe UI into place
Android Studio and swipe navigation
Improving navigation with the ActionBar
Navigating randomly with tabs
Managing tab selection
Connecting the fragments to the tabs
Providing direct access with drop-down list navigation
Managing fragment selection.
Providing the navigation choices
Android Studio and drop-down list navigation
Index.
Notes:
"Instant : short, fast, focused"--Cover.
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed October 19, 2013).
ISBN:
9781783283101
1783283106
OCLC:
864886670

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account