Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put two EditText in the same line

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

like image 807
Dev Avatar asked Aug 23 '11 19:08

Dev


1 Answers

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.

like image 163
hooked82 Avatar answered Sep 27 '22 19:09

hooked82