如何在Eclipse中重新排列按钮? [英] How do you rearrange buttons in Eclipse?

查看:120
本文介绍了如何在Eclipse中重新排列按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

嘿,我把我的按钮放在我的XML布局中有麻烦。我已经有一个背景,只是试图把3个按钮放在中间附近,那个我遇到麻烦。我知道中心的重力,但是你能帮助我吗?另外,如果我制作了自己的按钮,我可以使用图像按钮来导入它们,还是不对?感谢您的帮助!

Hey guys I am having trouble with placing my buttons in my XML layout. I already have a background and was just trying to put 3 buttons near the middle and thats where I'm having trouble. I know about center gravity and all that but could you help me? Also, If I made my own buttons can I just import them using the image button thing, or is that not right? Thanks for the help!

推荐答案

您可以通过直接编辑XML或通过拖放在轮廓中来重新排列布局的元素视图或图形布局视图(我发现后者更难做可靠)。

You can rearrange elements of your layout by editing the XML directly or by dragging and dropping in the outline view or the graphical layout view (I find the latter harder to do reliably).

要使用您的自定义视图,请点击自定义和图书馆视图按钮图形布局调色板,或仅在XML中的视图标签中键入完全限定类名。

To use your custom views, click on the "Custom & Library Views" button in the graphical layout palette, or just type in the fully qualified class name as the view tag in the XML.

这篇关于如何在Eclipse中重新排列按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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