Alex Rivera | Logout

How to put two EditText in the same line

Asked 2011-08-23T19:44:49.553
12

I would like to ask you, how can I put two EditText on the same line?

Edit
Report

1 Answer

22

Give this a shot:

<LinearLayout android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <EditText android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"/>
    <EditText android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"/>
</LinearLayout>

Also, you should try accepting answers if you get one that answers your question. You'll be more likely to get more/better responses.

answered 2011-08-23T19:52:02.847

Your Answer