Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
For the More Curious: Inspecting Compose Layouts
Sometimes you will need to debug your Compose UIs just as you have debugged traditional UIs using the framework view system. In a challenge near the end of Chapter 5, you explored the layout inspector. The layout inspector allows you to see the configuration of your views, including their nesting, attributes, and position. You can also break the view into layers to see exactly what is being rendered by a given view.
The layout inspector (as well as many other Android UI debugging tools) fully supports Jetpack Compose. Try it out for yourself by opening the layout inspector with its menu option, Tools → Layout Inspector, then running Coda Pizza. The layout inspector will open in the bottom ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access