private void drawDivider(Canvas canvas, View view, Divider divider, Position position) {
    EnumSet<Direction> directions = Direction.getSouthEastCorner();

    if (position.getColumn() == 0) {
      directions.add(Direction.SOUTH_WEST);
      directions.add(Direction.WEST);
    }

    if (position.getRow() == 0) {
      directions.add(Direction.NORTH);
      directions.add(Direction.NORTH_EAST);
    }

    if (position.getColumn() == 0 && position.getRow() == 0) {
      directions.add(Direction.NORTH_WEST);
    }

    divider.draw(canvas, view, directions);
  }
Draw the provided divider.
Each divider is responsible for drawing some of his surroundings.
Drawing priorities follows a top-to-bottom and left-to-right rule, this means
that the north-west item will draw all his dividers all the other north cells will draw
all but west separators, and west cells will draw all but north separators. The rest
of the cells will draw only east, south-east and south dividers:
 ___  ___  ___
|   |    |    |
|___| ___| ___|

|   |    |    |
|___| ___| ___|

|   |    |    |
|___| ___| ___|
dividers/src/main/java/com/karumi/dividers/DividerItemDecoration.java