Tôi có 3 nút Layout.xml bên dưới nơi họ xuất hiện bên dưới của nhau ...tuyến tính diện với hai nút cạnh nhau - android
<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>
Tôi muốn có hai nút phía trước bởi bên (btn_1 và btn_2). Ai có thể cho tôi một gợi ý về làm thế nào để làm điều đó?
Thanks a lot
được trường hợp tương tự: http://stackoverflow.com/questions/5551349/2-buttons-side-by-side-android-layouts/21411490#21411490 – iarroyo