Android Question EditText & Gravity

stevel05

Expert
Licensed User
Longtime User
It depends how deep your EditText is, if it's single line you probably won't notice the difference. but it does work if you have a deeper EditText. EditText also has padding, so it may not display right at the bottom if that's what you are expecting.

You can adjust it using JavaObject:

B4X:
Dim JO As JavaObject = editText1
    JO.RunMethod("setPadding",Array As Object(0,0,0,0))

See the Android Developer documentation here
 
Last edited:
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
It depends how deep your EditText is, if it's single line you probably won't notice the difference. but it does work if you have a deeper EditText. EditText also has padding, so it may not display right at the bottom if that's what you are expecting.

You can adjust it using JavaObject:

B4X:
Dim JO As JavaObject = editText1
    JO.RunMethod("setPadding",Array As Object(0,0,0,0))

See the Android Developer documentation here


I believe that most of the time it is used for single line.
I'll try using the padding, as thou hast advised.

Thank you very much
 
Upvote 0
Top