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
What I do is in the onCreate for the activity, measure the EditText first then apply its maxWidth.
You can do so using code similar to the following:
EditText someedittext = (EditText)findViewById(R.id.sometextview); someedittext.setMaxWidth(someedittext.getWidth());