-1

I have a cursor and hint that insists on being flush to the top left of an input field and I was wondering how I can fix this typically.an

Molly
  • 1,887
  • 3
  • 17
  • 34
reactor
  • 1,722
  • 1
  • 14
  • 34

2 Answers2

0

If you want to keep it in the center set gravity as the center in XML.

android:gravity="center"
Ashi Agarwal
  • 91
  • 1
  • 4
0

If you want to center it, you can use the property gravity as Ashi Agarwal said. But you need to center it vertically:

android:gravity="center_vertical"
MontDeska
  • 1,617
  • 19
  • 16