有什么工具可以检查UI控件的对齐方式吗? [英] Any tool to check UI controls alignment?

查看:129
本文介绍了有什么工具可以检查UI控件的对齐方式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何工具可以检查桌面应用程序或Web应用程序上的UI控件是否正确对齐,它们之间的距离是否一致以及控件是否遵循UI标准?

因为如果还没有,我打算写一个. :)

Is there any tool to check if UI controls on a desktop app or a web app are properly aligned, the distance between them is consistent and the controls are following UI standards?

Because if there isn''t any already, I am planning to write one. :)

推荐答案

我不知道这种工具是否可用.如果没有这样的工具,我不会感到惊讶,而且我知道为什么:它将毫无用处.我可以猜测它的来历:您可能是手动开发UI,这意味着要使用某种图形设计器,并且要使用绝对定位.换句话说,您用鼠标编程",并且这种工作的准确性受到限制.如果您自己不这样做,那么您可能会以手动方式描绘开发UI的用户.

我建议您重新考虑做此类工作的想法,因为这样您将有助于支持非常懒散的UI开发方式.不仅不能以这种方式开发像样的软件,甚至没有以最低限度的专业工作也不能以这种方式进行.

您没有共享您的平台,预期目标项目的平台,要使用或要使用的语言,UI库或其他重要细节,因此我无法为您提供确切的建议,但是在体面的UI开发中,中的所有内容都会自动对齐第一名.适当的编程技术包括诸如使用父子控制关系和分层布局结构,对接,填充,边距,锚点​​,网格等之类的东西.替代方法包括在运行期间计算控制位置/尺寸;以及这些不同的方法可以组合在一起.

如果不是这种情况,则UI开发方法将同时具有开发成本过高和质量过低.您提出的工具之类的工具无法保存.

—SA
I don''t know if such tool is available. I would not be surprised if there are no such tool, and I know why: it would be useless. I can guess where it comes from: you probably develop UI manually, it means by some sort of graphical designer, and you use absolute positioning. In other words, you "program" with the mouse, and the accuracy of such work is limited. If you do not do so by yourself, you probably picture the users who develop UI in such manual way.

I would advice you rethink your idea of doing such works, because in this way you would be helping to support very louse way of UI development. Not only decent software is not developed this way, even minimally professional work is not done this way.

You did not share your platform, the platform of prospective target project, the language, UI library to be used or targeted or other important detail, so I cannot give you exact advice, but in decent UI development everything is aligned automatically in first place. The adequate programming techniques include such things as using parent-child control relationship and hierarchic layout structures, docking, padding, margins, anchors, grids and the like. Alternative methods include calculation of the control positions/sizes during run time; those different methods could be combined together.

If this is not the case, UI development method would have too high development cost and too low quality at the same time. The tools like the one you are proposing cannot save it.

—SA


这篇关于有什么工具可以检查UI控件的对齐方式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆