private boolean canScroll() {
        View child = getChildAt(0);
        if (child != null) {
            int childHeight = child.getHeight();
            int childWidth = child.getWidth();
            return (getHeight() < childHeight + getPaddingTop() + getPaddingBottom()) ||
                    (getWidth() < childWidth + getPaddingLeft() + getPaddingRight());
        }
        return false;
    }
private boolean canScroll ( ) { View child = getChildAt ( 0 ) ; if ( child != null ) { int childHeight = child . getHeight ( ) ; int childWidth = child . getWidth ( ) ; return ( getHeight ( ) < childHeight + getPaddingTop ( ) + getPaddingBottom ( ) ) || ( getWidth ( ) < childWidth + getPaddingLeft ( ) + getPaddingRight ( ) ) ; } return false ; }
@return Returns true this TwoDScrollView can be scrolled