Weight does not automagically replace the heights, but you can just set
them to 0dp as stated in the docs:

http://developer.android.com/guide/topics/ui/layout/linear.html

> Equally weighted children
> To create a linear layout in which each child uses the same amount of
> space on the screen, set the android:layout_height of each view to "0dp"
> (for a vertical layout) or the android:layout_width of each view to "0dp"
> (for a horizontal layout). Then set the android:layout_weight of each view
> to "1".


But awesome it works for you now :)

Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk


On Thu, Oct 18, 2012 at 10:22 AM, EaranMaleasi <[email protected]> wrote:
> yeah i just identified that the missing heights were the problem.... i
> thought the weight would replace them completely, but now i know i have to
> set sth. like wrap_content. however thanks for your help^^
>
>
>
> --
> View this message in context:
http://mono-for-android.1047100.n5.nabble.com/axml-Code-wants-an-layout-height-at-line1-tp5712189p5712192.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to