Is there any difference between "center_horizontal|center_vertical" and "center"
No, there is no difference. According to source code
public static final int CENTER = CENTER_VERTICAL|CENTER_HORIZONTAL;
There really is not difference between the two except that it's less code using center
. combining center_horizontal
and center_veritcal
is the equivalent of center