Add Convenience Methods For Orientations

adds methods isVertical() and isHorizontal() for linear layouts and grid
layouts

patch 2: removes use of 'this'

patch 3: use two space indents, instead of tabs