你如何重新排列按钮,你希望他们在Eclipse?排列、按钮、Eclipse

2023-09-06 14:08:53 作者:村里最帅的男人

我有麻烦把我的按钮在我的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!

PS:另外,还有在我的按钮,一个大的白色盒子。我如何获得的走开?

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

推荐答案

我张贴了这个答案,你的duplicate问题,所以我还会在这里发布。 :)

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

您可以通过直接编辑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.