how to leave space between buttons

4,023 views
Skip to first unread message

noone

unread,
Mar 17, 2014, 9:23:50 PM3/17/14
to mitappinv...@googlegroups.com
hello
in the designer I have some buttons, vertically, one under the other
but, when I preview them on my mobile, the buttons are of course vertically, but stuck, without any space or line between them
they look like they are one big button
I want to be clear that there are several of them
how should I do that?
thanks

SteveJG

unread,
Mar 17, 2014, 9:31:17 PM3/17/14
to mitappinv...@googlegroups.com, gorgono...@gmail.com
You could use a Table layout..one button in each compartment;    Use a vertical layout, but put a label between each button.  The label should have no text..then adjust the height of the label to as many pixels as you want.   It will act as a spacer.

There are other ways.   Someone might post.

Did that work for you?   Good luck.

--Steve

vasista k.j

unread,
Mar 17, 2014, 10:27:48 PM3/17/14
to mitappinv...@googlegroups.com, gorgono...@gmail.com
I usually use horizontal and vertical layouts.
inside horizontal layout put two buttons. between the buttons put one vertical layout. now resize the height and WIDTH which will give you the space between two buttons.

new_one

unread,
May 20, 2014, 8:43:01 PM5/20/14
to mitappinv...@googlegroups.com
@ SteveJG
I tried your way and it worked
thanks

but I have a question
my buttons in the vertical layout are posed at left and I want them in the center
in the designer the options of Align Horizontal + Vertical are disabled
why?
How can I fix them?

anyone who knows is welcome to answer
thank you

Enis

unread,
May 20, 2014, 9:32:44 PM5/20/14
to
Use a Vertical arrangement and set the Alignment Property  set to "Center"
Reply all
Reply to author
Forward
0 new messages