Defining an Android Mulitline EditText Field is done via the inputType=”textMultiline”. Unfortunately the text looks strangely aligned. To solve that also use the gravity=”left|top” attribute.
<EditText android:id="@+id/editText1" android:layout_width="match_parent" android:layout_height="match_parent" android:ems="10" android:gravity="left|top" android:inputType="textMultiLine" > <requestFocus /> </EditText>
With the gravity flag it looks like the following.
Without it, it looks like the following.