public boolean canChildScrollDown() {
        if (android.os.Build.VERSION.SDK_INT < 14) {
            if (mTarget instanceof AbsListView) {
                final AbsListView absListView = (AbsListView) mTarget;
                try {
                    if (absListView.getCount() > 0) {
                        if (absListView.getLastVisiblePosition() + 1 == absListView.getCount()) {
                            int lastIndex = absListView.getLastVisiblePosition() - absListView.getFirstVisiblePosition();
                            return absListView.getChildAt(lastIndex).getBottom() == absListView.getPaddingBottom();
                        }
                    }
                } catch (Exception e) {
                    e.printStackTrace();
                }
                return true;
            } else {
                return true;
            }
        } else {
            return ViewCompat.canScrollVertically(mTarget, 1);
        }
    }
public boolean canChildScrollDown ( ) { if ( android . os . Build . VERSION . SDK_INT < 14 ) { if ( mTarget instanceof AbsListView ) { final AbsListView absListView = ( AbsListView ) mTarget ; try { if ( absListView . getCount ( ) > 0 ) { if ( absListView . getLastVisiblePosition ( ) + 1 == absListView . getCount ( ) ) { int lastIndex = absListView . getLastVisiblePosition ( ) - absListView . getFirstVisiblePosition ( ) ; return absListView . getChildAt ( lastIndex ) . getBottom ( ) == absListView . getPaddingBottom ( ) ; } } } catch ( Exception e ) { e . printStackTrace ( ) ; } return true ; } else { return true ; } } else { return ViewCompat . canScrollVertically ( mTarget , 1 ) ; } }
}