Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Creating Dynamic UI with Android Fragments

You're reading from   Creating Dynamic UI with Android Fragments 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.

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781783283095
Length 122 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Jim Wilson Jim Wilson
Author Profile Icon Jim Wilson
Jim Wilson
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Creating Dynamic UI with Android Fragments
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. Fragments and UI Modularization 2. Fragments and UI Flexibility FREE CHAPTER 3. Fragment Lifecycle and Specialization 4. Working with Fragment Transactions 5. Creating Rich Navigation with Fragments Index

Intentional screen management


Until now, we've considered each activity to always correspond to a single screen in our application. We've used fragments only to represent subsections within each screen. As an example, let's think back to the way we've constructed our book-browsing application. In the case of a wide-display device, our application uses a single activity containing two fragments. One fragment displays the list of book titles, and the other fragment displays the description of the currently selected book. Because both of these fragments appear on the screen at the same time, we display and manage them from a single activity. In the case of a portrait-oriented handset, we chose to display the book list and the book description on separate screens. Because the two fragments do not appear on the screen at the same time, we manage them in separate activities.

An interesting thing is that the tasks our application performs are identical in both cases. The only difference is how much...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image