I have 3 buttons layout.xml below where they appear below each other ...
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="10dip" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <Button android:id="@+id/btn_1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="Car" /> <Button android:id="@+id/btn_2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="Vehicle" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > <Button android:id="@+id/btn_3" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Bike" /> </LinearLayout> </LinearLayout>
I would like to have the first two buttons side by side (btn_1 and btn_2). Can someone give me a hint on how to do this?
Thank you so much
android android-linearlayout
Devester Feb 15 '13 at 10:11 2013-02-15 10:11
source share