Skip to the content.
This is the Spring 23 final website.
This is the Spring 23 final website.

Doodle — Layout Inspector Issues

Layout Inspector Issues (Doodle)

Issue: None of the DoodleView’s child interactor objects are listed or outlined

If the Layout Inspector looks like this:

The DoodleView shows up, but none of the child interactors show up in the left sidebar

Solution: Try unchecking the Filter System-Defined Layers checkbox:

Uncheck `Filter System-defined layers` from the filter menu (which is just above the left sidebar with the interactor hierarchy tree)

Issue: All of the bounding boxes are in the upper-left corner

If the Layout Inspector looks like this:

Red squares the shape of the interactors' bounding boxes that are children of the DoodleView

Solution: Use the Legacy Layout Inspector. You can do this one of two ways.

Way 1

Bind a keyboard shortcut to the Legacy Layout Inspector in the File > Settings pane: Preferences window screenshot with 'keymap' selected in the left sidebar and 'legacy layout inspector' selected in the dropdown under 'Main Menu > Tools' in Android Studio

This will keep the Layout Inspector in the tools menu, but allow you to access the legacy layout inspector.

Way 2

Uncheck Enable Live Layout Inspector in settings: Go to settings > experimental and uncheck Enable live layout inspector

Under Tools, Legacy Layout Inspector will now show up instead of Layout Inspector. Doing so changes the tools menu from tools menu showing list of tools with "Layout Inspector" at the bottom to tools menu showing list of tools with "Legacy Layout Inspector" at the bottom


If you’re still having trouble…

Please reach out on Ed or come in to office hours! These errors are often OS/hardware specific and can be tricky to debug and fix. Issues like this (aside from the initial setup of Android Studio) are unrelated to the course material, so we don’t want you spending extra time on them.