I have a fairly complex (not really) xml layout file. One of the views is a LinearLayout (v1) with two children: an EditText(v2) and another Linear
v1
v2
These three lines are enough.
android:singleLine="true" android:inputType="text" android:imeOptions="actionNext"