Update the way judging gravity

Support multi gravity values(separated by '|').
This way I can align the text with `Gravity.CENTER_VERTICAL | Gravity.RIGHT`