Like everyone else, "left|center_vertical" works, but I found that if it is not explicitly indicated to the left or right, most properties are left by default.
Therefore, in order for the text to be left aligned and vertically centered, it should be sufficient:
android:gravity="center_vertical"
juil Jun 23 '16 at 20:49 2016-06-23 20:49
source share