Refactoring

Added API import

Fixed bug with width and applying wrong rects for gravity

Fixed bug with relative layouts

Removed empty line

Added fix for separators