Use the EditText's gravity for TextInputLayout

Currently we only use it for the expanded hint, this
CL also uses it's horizontal gravity for the collapsing
hint.

Also fixed an issue where relative gravities are wiped
out and not used (wrong bitmask).

BUG: 27786316
Change-Id: If5ea7c34b5f45e1d959ace41353ff1303ba05732
2 files changed