I have an EditText and a Button set next to each other on the same horizontal line. It looks great, except when the user enters a lot of text, the
EditText
Button
I had the exact query. But i had an EditText and a Button next to each other in a Linear Layout. I tried android:layout_weight="1" for EditText android:layout_width="0dp" And it worked just perfect!! Thanks a lot!