code: private void refreshItemViewHolder(@NonNull ViewHolder holder,
                                         boolean isRowDragging, boolean isColumnDragging) {
  
          int left = getEmptySpace() + mManager.getColumnsWidth(0, Math.max(0, holder.getColumnIndex()));
  
          int top = mManager.getRowsHeight(0, Math.max(0, holder.getRowIndex()));
          View view = holder.getItemView();
          if (isColumnDragging && holder.isDragging() && mDragAndDropPoints.getOffset().x > 0) {
              // visible dragging column. Calculate left offset using drag and drop points.
              left = mState.getScrollX() + mDragAndDropPoints.getOffset().x - view.getWidth() / 2;
              if (!isRTL()) {
                  left -= mManager.getHeaderRowWidth();
              }
              view.bringToFront();
          } else if (isRowDragging && holder.isDragging() && mDragAndDropPoints.getOffset().y > 0) {
              // visible dragging row. Calculate top offset using drag and drop points.
              top = mState.getScrollY() + mDragAndDropPoints.getOffset().y - view.getHeight() / 2 - mManager.getHeaderColumnHeight();
              view.bringToFront();
          }
          int leftMargin = holder.getColumnIndex() * mSettings.getCellMargin() + mSettings.getCellMargin();
          int topMargin = holder.getRowIndex() * mSettings.getCellMargin() + mSettings.getCellMargin();
          if (!isRTL()) {
              left += mManager.getHeaderRowWidth();
          }
  
          // calculate view layout positions
          int viewPosLeft = left - mState.getScrollX() + leftMargin;
  
          int viewPosRight = viewPosLeft + mManager.getColumnWidth(holder.getColumnIndex());
          int viewPosTop = top - mState.getScrollY() + mManager.getHeaderColumnHeight() + topMargin;
          int viewPosBottom = viewPosTop + mManager.getRowHeight(holder.getRowIndex());
  
          // update layout position
          view.layout(viewPosLeft, viewPosTop, viewPosRight, viewPosBottom);
      }
docs: Refresh current item view holder.
  
  @param holder           current view holder
  @param isRowDragging    row dragging state
  @param isColumnDragging column dragging state