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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android UI Development with Jetpack Compose

You're reading from   Android UI Development with Jetpack Compose Bring declarative and native UIs to life quickly and easily on Android using Jetpack Compose

Arrow left icon
Product type Paperback
Published in Feb 2022
Publisher Packt
ISBN-13 9781801812160
Length 248 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Thomas Künneth Thomas Künneth
Author Profile Icon Thomas Künneth
Thomas Künneth
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Part 1:Fundamentals of Jetpack Compose
2. Chapter 1: Building Your First Compose App FREE CHAPTER 3. Chapter 2: Understanding the Declarative Paradigm 4. Chapter 3: Exploring the Key Principles of Compose 5. Part 2:Building User Interfaces
6. Chapter 4: Laying Out UI Elements 7. Chapter 5: Managing the State of Your Composable Functions 8. Chapter 6: Putting Pieces Together 9. Chapter 7: Tips, Tricks, and Best Practices 10. Part 3:Advanced Topics
11. Chapter 8: Working with Animations 12. Chapter 9: Exploring Interoperability APIs 13. Chapter 10: Testing and Debugging Compose Apps 14. Chapter 11: Conclusion and Next Steps 15. Other Books You May Enjoy

What this book covers

Chapter 1, Building Your First Compose App, shows you how to build your first Compose app. Also, important key ideas such as composable functions and using previews are introduced. It is important to whet the appetite with early success, so we'll build, preview, and run composable functions before digging too deep into details.

Chapter 2, Understanding the Declarative Paradigm, explains how this was done before, and what the issues with the old approach are. Also, you'll an idea how composables are different to Views, and why this is both important and beneficial.

Chapter 3, Exploring the Key Principles of Compose, introduces the key principles that Jetpack Compose relies on. This knowledge is essential for writing well-behaved Compose apps.

Chapter 4, Laying Out UI Elements, introduces you to some of the existing layouts. It also shows you how to implement custom layouts. These are needed if the built-in layouts cannot provide the required distribution of UI elements onscreen.

Chapter 5, Managing the State of Your Composable Functions, takes a look at how Jetpack Compose uses state. State is app data that may change over time. Composable functions display and modify state. Jetpack Compose is based upon a small set of principles regarding how to use state. This chapter acquaints you with these principles.

Chapter 6, Putting Pieces Together, catches up on previously learned concepts and brings them together in one app. Seeing concepts in real code helps understand them and makes it easier to reuse them in your own programs.

Chapter 7, Tips, Tricks, and Best Practices, provides best practices when using Compose. These will include topics such as persisting and retrieving state and using so-called side effects. The chapter also shows things to avoid, such as having heavy computations inside a composable function.

Chapter 8, Working with Animations, introduces all relevant APIs. Animations and transitions make apps really shine. Jetpack Compose simplifies the process of adding animation effects greatly over the old View-based approach.

Chapter 9, Exploring Interoperability APIs, discusses strategies to combine declarative and imperative approaches in one app and offers a migration strategy to painlessly update existing UIs to Jetpack Compose.

Chapter 10, Testing and Debugging Compose Apps, introduces basic testing scenarios for Compose apps. Testing the user interface of a Compose app works differently than testing a view-based UI. Compose uses a more declarative approach to testing.

Chapter 11, Conclusion and Next Steps, wraps up the book in directing you to things you can try next. Also, the chapter attempts to guess what the future will hold for Jetpack Compose and looks into neighboring platforms and how you can benefit from your knowledge on them.

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