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

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

问题描述

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



PS:另外,我的按钮周围有一个大的白色框。我如何解决这个问题?

解决方案

我把这个答案发贴到你的重复的问题,所以我也在这里张贴。 :)



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



要使用您的自定义视图,请单击图形布局调色板中的自定义和库视图按钮,或者仅输入完全限定类作为XML中的视图标签名称。


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!

PS: Also, there is a big white box around my button. How do I get that to go away?

解决方案

I posted this answer to your duplicate question, so I'll also post it here. :)

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).

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天全站免登陆