如何在Eclipse中重新排列按钮? [英] How do you rearrange buttons where you want them in Eclipse?
问题描述
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屋!