Add layout_gravity support