question: static public void assertRightAligned ( View first , View second , int margin ) { int [ ] xy = new int [ 2 ] ; first . getLocationOnScreen ( xy ) ; int firstRight = xy [ 0 ] + first . getMeasuredWidth ( ) ; second . getLocationOnScreen ( xy ) ; int secondRight = xy [ 0 ] + second . getMeasuredWidth ( ) ; assertEquals ( "views are not right aligned" , Math . abs ( firstRight - secondRight ) , margin ) ; }
target:  Assert that two views are right aligned, that is that their right edges are on the same x location, with respect to the specified margin.