简体   繁体   English

Eclipse GUI,XML图形布局

[英]Eclipse GUI, XML graphical layout

Is there any way to get a ruler line in the Android XML graphical layout view in Eclipse. 有什么方法可以在Eclipse的Android XML图形布局视图中获得标尺线。

If you don't know which layout I am talking about, it's this one on the right. 如果您不知道我在说哪种布局,那是右边的布局。

Thanks 谢谢

在此处输入图片说明

you could use absolute layout (not recommended, as it is being deprecated) or relative layout and call the getX() and getY() functions of your Views (Buttons) and print them for debugging purposes. 您可以使用绝对布局(不建议使用,因为不建议使用)或相对布局,然后调用视图(按钮)的getX()和getY()函数并出于调试目的打印它们。 Ive never heard of a dev ruler like your talking about... if you provide a few more details about your project I can help you more. 我从未听说过像您所说的开发标尺...如果您提供有关项目的更多详细信息,我可以为您提供更多帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM