Key FeaturesFrom an eminent author comes a book that will help you create engaging apps that dynamically adapt to individual device characteristicsThe only book that includes the latest fragment-oriented features and their role in Material designThis book provides code-intensive discussions and detailed examples that help you understand better and learn faster.Book DescriptionToday's users expect mobile apps to be dynamic and highly interactive, with rich navigation features. These same apps must look fantastic whether running on a medium-resolution smartphone or high-resolution tablet. Fragments provide the toolset we need to meet these user expectations by enabling us to build our applications out of adaptable components that take advantage of the rich capabilities of each individual device and automatically adapt to their differences.
This book looks at the impact fragments have on Android UI design and their role in both simplifying many common UI challenges and in providing best practices for incorporating rich UI behaviors. We look closely at the roll of fragment transactions and how to work with the Android back stack. Leveraging this understanding, we explore several specialized fragment-related classes such as ListFragment and DialogFragment. We then go on to discuss how to implement rich navigation features such as swipe-based screen browsing, and the role of fragments when developing applications that take advantage of the latest aspects of Material Design.
You will learn everything you need to provide dynamic, multi-screen UIs within a single activity, and the rich UI features demanded by today's mobile users.
What you will learnLearn the role and capabilities of fragmentsUse Android Studio's fragment-oriented featuresCreate an app UI that works effectively on smartphones and tabletsManage the creation and life cycle of fragmentsDynamically manage fragments using the FragmentTransaction classLearn the application design for communicating between fragmentsLeverage fragments when implementing applications that take advantage of the latest features of Material DesignAbout the AuthorJim 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 (), 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 () 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.
Jim Wilson could have simply dismissed himself as a competent piano tuner-technician, even an exceptional one. But he was and is so much more, and it took the sudden death of a dear friend and the encouragement of a legendary singer/songwriter to prove it to him.
From a broken home in Amarillo, Texas to a multi-award-winning recording artist, Jim Wilson’s journey is a captivating tale of showbiz glamour, personal tragedy, self-discovery, and dogged determination. And, as is typical of Jim Wilson, he’s turned out to be a pretty good wordsmith.
Tuned-In: Memoirs of a Piano Man is a page-turner and a life-changer. It’s a self-help book in the form of an autobiography. It is entertaining, revealing and full of lessons for musicians, fans, and all readers.
Jim Wilson’s life direction was set when he was given a guitar at age 7, then began composing songs at age 9. Soon after moving from West Texas to LA in his early 20’s, he gained a reputation as a respected piano technician, catering to the highest echelon of the music industry. Jim helped develop the first MIDI-adapter for acoustic piano in the 80’s, which became an instant hit with artists and studios around the world.
It was the shocking, untimely death of his closest friend that forced Jim to question the whole purpose of his life. With the love and support of his musical heroes – most significantly his friend and mentor, Dan Fogelberg -- Jim set out on a solo career, composing, recording and performing his signature style of piano-featured instrumentals.
Four of Jim’s ten recordings have hit the Billboard Top-20, he’s had two PBS specials, and his music has been streamed over 75 million times by fans around the globe. He was recently made a “Lifetime Member” of the Recording Academy. He enjoys scuba diving, skiing, pilot lessons, and mountain biking. Tuned In is Jim’s first book.
The concept of Fragments was introduced in Android Honeycomb. Although this feels like a very long time, it was in fact only 2 years ago. This new book attempts to summarise some of the last 2 years and what we (should) have learned.
The book starts with an overview of when to use fragments (and also when not to) and introduces them using an example that we follow throughout the book. The example changes from a simple app into a more advanced one with landscape views, which is later migrated to tablets. This way it changes from a normal layout application into one with fragments. It not only explains resource folders, but also layout aliases mechanism. This is a great start for new developers.
If you are already familiar with fragments you might want to skip the first part but should pay attention to the the part about lifecycle. It details exactly how lifecycle and associated methods of activities and fragment are bound. The book describes the important differences between onCreate() and onCreateView() especially when it comes to pausing views and what it means in terms of performance for the developer.
The last part of the book covers actionbar navigation examples built with fragments as tabs or dropdown navigation. For me, this is the only negative point in the book — nowadays most people use menu drawer for navigation, but this is completly missing in the book. It would have been great to see this compared to other modes and what you need to change in your app and how it effects your fragments.
Altogether this is an important book. It's not a large book, just a few hundred pages, so a quick read and a quick win.
The book by Jim Wilson is very clear and exhaustive about a powerfull technique of the most modern UI design approach for Android applications. The intention is really clear: to describe with a very detailed level the pros and cons of fragments approach, in contrast with activity based one. In addition to that, Jim explains all the fragments related stuff to create very effective Android UI...
Divided in three parts, the first one is a simple but efficient comparison between the traditional way of programming UI for Android and the new one (introduced in Android Honeycomb, 3.0 version, when tablets starts to came out). The middle part covers the lifecycle of fragments inside the Android application (I really appreciate this one!), about two aspects: in the creation, setup, destruction and management of fragments inside the Android application and in the fragment transactions in the UI, in order to create rich UI navigation. In the end, the third part improves the ActionBar design and workflow.
The required level to approach this book is more or less low: basic knowledge of Android programming and a working development environment for the examples.
In summary, I found this book really helpful to introduce and make you a master in Android Fragment design and code writing.
I got dumped into the deep end on Android development. My first professional Android project was a monolithic beast of an app that takes full advantage of fragments. However, following what was going on and figuring out best practices was hard to do from such a large code base. This book got me up to speed quickly and easily.