Android RelativeLayout spacing

Posted by fordays on Stack Overflow See other posts from Stack Overflow or by fordays
Published on 2010-06-13T17:37:32Z Indexed on 2010/06/13 17:42 UTC
Read the original article Hit count: 252

Filed under:

Hi,

I'm just putting the finishing touches to my Android app. Unfortunately, I dug straight into development without reading the documentation and built my layout with AbsoluteLayout and it turned out to look terrible when I loaded the app on my phone. Now I'm redoing the UI in a RelativeLayout and I want to put empty canvas space in between my ViewGroups in the y-direction. I am currently achieving this by putting random TextView sentences that are of the same color as my View's background in order to make psuedo-empty space. Is there a better way to do this, because right now when I define a specific ViewGroup to be placed below another View, it gets stuck right below the top View.

As I was writing this, it dawned upon me that using padding might be the answer.... Any other suggestions?

© Stack Overflow or respective owner

Related posts about android