Interface AspectRatioDecorator.AspectRatioListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onAspectRatioUpdated(Float targetAspectRatio, Float naturalAspectRatio, Boolean aspectRatioMismatch) Called when either the target aspect ratio or the view aspect ratio is updated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onAspectRatioUpdated

         abstract Unit onAspectRatioUpdated(Float targetAspectRatio, Float naturalAspectRatio, Boolean aspectRatioMismatch)

        Called when either the target aspect ratio or the view aspect ratio is updated.

        Parameters:
        targetAspectRatio - The aspect ratio that has been set in setAspectRatio(Float)
        naturalAspectRatio - The natural aspect ratio of this view (before its width and height are modified to satisfy the target aspect ratio).
        aspectRatioMismatch - Whether the target and natural aspect ratios differ enough for changing the resize mode to have an effect.