I am using EditText
for message. Height of EditText
is 200dp
.
Problem is that when i click on this EditText
, cursor is blinking on the middle of the EditText
,while I want cursor should be blink in the top of the EditText
.
set gravity in edittext xml
android:gravity="top"
or in java code:-
editText.setGravity(Gravity.TOP);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With