Hi,

You need to set android:layout_marginTop="10dip" on the second child,
not on the parent.

On Wed, Jan 28, 2009 at 2:18 AM, code_android_festival_way
<festival.s...@googlemail.com> wrote:
>
> Hello.
>
> At the moment I'm using the following layout.
>
> http://paste.pocoo.org/show/101642/
>
> Module one and two get added in code. Now I'd like to have a 10px
> spacing between the two modules. I have tried to set
> "layout_topMargin" to the parent LinearLayout but it doesn't work. In
> addition I have tried to set this parameter to the LinearLayout
> modules. But well it doesn't work. It always looks like this:
>
> http://dl.getdropbox.com/u/287197/Hierarchy%20Viewer.jpg   (the two
> modules are surrounded by a border)
>
> Do I really have to put a dummy (spacer) view between the two
> LinearLayouts or is there another possibility?
>
> Regards and thanks for your help.
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to