Skip to content Skip to sidebar Skip to footer

How Do You Rearrange Buttons Where You Want Them In Eclipse?

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 t

Solution 1:

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.

Solution 2:

If you use Image button you can set your custom Image to src property or background property. If youi chose src you should add android:background="@null".

But I would recommend to use background property while if you use 9-patch png (who knows maybe tomorow you will use 9-patch) they would not stretch if you set it in src.

Post a Comment for "How Do You Rearrange Buttons Where You Want Them In Eclipse?"