Layout Validation in Android Studio

Viewed 1643

How do I get the Layout Validation window in Android Studio? It's usually listed under View > Tool windows. Is there a solution that helps you see your layouts displayed on different screen sizes in realtime without actually running an emulator or actual device?

3 Answers

As per Android Studio version 4.1.3, it's still there in

View -> Tool Windows -> Layout Validation

enter image description here

If you can't see it,

  • go to settings
  • search for Layout Validation
  • Click on KeyMap
  • Double click on Layout Validation
  • Add keyboard shortcut

enter image description here

As of Arctic Fox 2020.3.1, it seems to appear only if you are in the XML layout editor. It doesn't appear to work (yet) for Jetpack Compose previews.

Related