code: private void obtainScaledEdge(@NonNull final TypedArray typedArray) {
          int defaultValue = Edge.VERTICAL.getValue();
          Edge scaledEdge = Edge.fromValue(
                  typedArray.getInt(R.styleable.SquareImageView_scaledEdge, defaultValue));
          setScaledEdge(scaledEdge);
      }
docs: Obtains the scaled edge from a specific typed array.
  
  @param typedArray
  The typed array, the scaled edge should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null