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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With