Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable the rulers on Layout Editor?

I've seen some Layout Editors in Android Studio with a ruler on top and on the side for the Preview window and I'm trying to figure it out how to enable, any ideas? I'm using Android Studio 3.0.1 and I can't see them.

enter image description here

like image 862
davisjp Avatar asked Mar 04 '18 21:03

davisjp


People also ask

What is layout validation?

Layout Validation is a visual tool for simultaneously previewing layouts for different devices and display configurations, helping you catch problems in your layouts earlier in the process.

How do I open layout editor?

The Layout Editor appears when you open an XML layout file. Palette: Contains various views and view groups that you can drag into your layout. Component Tree: Shows the hierarchy of components in your layout. Toolbar: Click these buttons to configure your layout appearance in the editor and change layout attributes.


1 Answers

Seems like the ruler has been removed from the Preview tab of the Layout Inspector since Android Studio 3.0. It's 2020 now and Android Studio 4.0 has a new Layout Validation tool to preview the layout on different devices and display configurations. Not really the same but at least the Layout Inspector seems much more reliable than those days.

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

like image 154
davisjp Avatar answered Oct 03 '22 11:10

davisjp