lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/dragdrop/DragAndDropHandler.java
@Nullable
    private View getViewForId(final long itemId) {
        ListAdapter adapter = mAdapter;
        if (itemId == INVALID_ID || adapter == null) {
            return null;
        }

        int firstVisiblePosition = mWrapper.getFirstVisiblePosition();

        View result = null;
        for (int i = 0; i < mWrapper.getChildCount() && result == null; i++) {
            int position = firstVisiblePosition + i;
            if (position - mWrapper.getHeaderViewsCount() >= 0) {
                long id = adapter.getItemId(position - mWrapper.getHeaderViewsCount());
                if (id == itemId) {
                    result = mWrapper.getChildAt(i);
                }
            }
        }
        return result;
    }
@Nullable
    private View getViewForId(final long itemId) {
        ListAdapter adapter = mAdapter;
        if (itemId == INVALID_ID || adapter == null) {
            return null;
        }

        int firstVisiblePosition = mWrapper.getFirstVisiblePosition();

        View result = null;
        for (int i = 0; i < mWrapper.getChildCount() && result == null; i++) {
            int position = firstVisiblePosition + i;
            if (position - mWrapper.getHeaderViewsCount() >= 0) {
                long id = adapter.getItemId(position - mWrapper.getHeaderViewsCount());
                if (id == itemId) {
                    result = mWrapper.getChildAt(i);
                }
            }
        }
        return result;
    }
Retrieves the {@code View} in the list corresponding to itemId.

@return the {@code View}, or {@code null} if not found.