Hour 11. Understanding Activities and Fragments in a Complex App
What You’ll Learn in This Hour:
• How the Activity life cycle works
• What are Fragments?
• How to swap Fragments in an Activity
• How to use an ActionBar with Fragments
In this hour, you learn the details of the Activity life cycle and the relationship between Fragments and Activities. We explain Fragments in detail and show how to incorporate them into Google TV apps. Fragments make it easier to create sophisticated user interfaces. We’ll use two Fragments in an Activity to understand the fundamentals of how they work. Then we’ll create an app with more complex navigation using Fragments and an ActionBar.
Understanding the Activity Life Cycle
We’ve been using Activities in our ...
Get Sams Teach Yourself Google TV™ App Development in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.