Is there anyway to make an EditText start typing at the top left corner of the EditText?

NotACleverMan picture NotACleverMan · May 5, 2011 · Viewed 35.8k times · Source

I have an EditText with the property:

android:minLines="3"

However, when I start typing, it types in the middle of the EditText.

Is there any way to get this to start typing at the top left of the EditText area?

Answer

CommonsWare picture CommonsWare · May 5, 2011

Add android:gravity="top|left" to the EditText in the layout XML file.