private boolean isViewTopAligned ( ViewGroup . MarginLayoutParams layoutParams ) { final int top = getView ( ) . getTop ( ) ; boolean viewTopAligned = top == 0 || top == layoutParams . topMargin ; LOGGER . trace ( "View is {} aligned" , viewTopAligned ? "TOP" : "BOTTOM" ) ; return viewTopAligned ; }
Checks whether view is top aligned