OUhhhhhhhhhh, that is clever ! Works ! (I did try to add the android: befor 
your code, I'm not so good)

Really a nice issue for this problem, why is it not so much spread ?

Here the view block what I add to your code

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<View
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="button 1"/>
 <View
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"/>

<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="button 2"/>
 <View
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"/>

<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="button 3"/>
<View
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"/> 
</LinearLayout>

Le jeudi 10 mai 2012 23:04:34 UTC-4, huberte a écrit :
>
> I tried this with no luck :
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:layout_width="wrap_content"
>     android:layout_height="fill_parent"
>     android:orientation="vertical"
>     android:visibility="visible" android:weightSum="3">
>
>     <Button
>         android:id="@+id/button1"
>         android:layout_width="fill_parent"
>         android:layout_height="0dp"
>         android:gravity="center_vertical|center_horizontal"
>         android:text="Button" android:layout_weight="1"/>
>
>     <Button
>         android:id="@+id/button2"
>         android:layout_width="fill_parent"
>         android:layout_height="0dp"
>         android:gravity="center_vertical|center_horizontal"
>         android:text="Button" android:layout_weight="1"/>
>
>     <Button
>         android:id="@+id/button3"
>         android:layout_width="fill_parent"
>         android:layout_height="0dp"
>         android:gravity="center_vertical|center_horizontal"
>         android:text="Button" android:layout_weight="1"/>
>
> </LinearLayout>
>
> thks for your help !
>

-- 
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