How to set Vertical Alignment of Text in Multiline EditText?


If you are creating a multiline EditText control and you want to set the vertical alignment of contents inside EditText you can set gravity property.

android:gravity="top|left"​

 

 

About author


User avatar

Waqas Anwar

Founder of EzzyLearning.com, Senior Consultant, Microsoft .NET and Web Technologies

Comments