If your font size is big enough, it might look like it’s not centered, because of the font padding.
Try using the already mentioned properties combined with android:includeFontPadding
, something like this:
android:gravity="center"
android:includeFontPadding="false"