Android Question EditText doesn't start from the first row

Alessandra Pellegri

Active Member
Licensed User
Longtime User
I created an edittext view and I put SingleLine property to False. So now I can write more than one line. The issue is that it starts to write from the middle height instead of the top.

I cannot find any property to change it, How could I do ?

Thank you
 

stevel05

Expert
Licensed User
Longtime User
If you created the edittext in the designer, set the vertical alignment to Top, If you created it in code use:
B4X:
EditText1.Gravity =  Gravity.TOP
 
Upvote 0
Top