Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Layout Validation in Android Studio

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?

like image 643
sea Avatar asked Sep 23 '26 09:09

sea


2 Answers

In order that the Layout Validation window appears, you have to open some of your views (activity, fragment,...) xml layout. Then, the window should automatically appear in the upper right corner of the IDE window. See here:

https://developer.android.com/studio/debug/layout-inspector#layout-validation

If it doesn't appear, then it should be listed under View > Tool Windows

like image 52
user1994514 Avatar answered Sep 26 '26 00:09

user1994514


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

like image 39
Roshana Pitigala Avatar answered Sep 26 '26 01:09

Roshana Pitigala