Class AspectRatioFrameLayout

    • Field Detail

      • RESIZE_MODE_FIT

        public static final int RESIZE_MODE_FIT
        Either the width or height is decreased to obtain the desired aspect ratio.
        See Also:
        Constant Field Values
      • RESIZE_MODE_FIXED_WIDTH

        public static final int RESIZE_MODE_FIXED_WIDTH
        The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
        See Also:
        Constant Field Values
      • RESIZE_MODE_FIXED_HEIGHT

        public static final int RESIZE_MODE_FIXED_HEIGHT
        The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
        See Also:
        Constant Field Values
      • RESIZE_MODE_FILL

        public static final int RESIZE_MODE_FILL
        The specified aspect ratio is ignored.
        See Also:
        Constant Field Values
      • RESIZE_MODE_ZOOM

        public static final int RESIZE_MODE_ZOOM
        Either the width or height is increased to obtain the desired aspect ratio.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AspectRatioFrameLayout

        public AspectRatioFrameLayout​(Context context)
      • AspectRatioFrameLayout

        public AspectRatioFrameLayout​(Context context,
                                      @Nullable
                                      AttributeSet attrs)