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.
Asked
Active
Viewed 3,789 times
16
-
Looking for the same. – Umar Tahir May 08 '18 at 11:11
-
1Please upvote the question for visibility – davisjp May 08 '18 at 11:50
-
found any way?? – Amit Kumar Pawar Oct 05 '18 at 05:19
-
I guess they just quietly removed the feature from Android Studio 3... – davisjp Oct 05 '18 at 15:49
2 Answers
4
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

davisjp
- 730
- 1
- 11
- 24
1
The Guidelines are the rulers. You move them around to get the measurements you need. Expressed in percentages or units.

The Source
- 11
- 1
-
Guidelines certainly helps but are limited to ConstraintLayouts, the rulers on the image of the question used to be available for all layouts. – davisjp Jul 11 '20 at 19:23