Fix a warning related to layout_gravity attributes.