Class AspectRatioFrameLayout

    • Field Detail

      • RESIZE_MODE_FIT

        public static final int RESIZE_MODE_FIT
        Deprecated.
        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
        Deprecated.
        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
        Deprecated.
        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
        Deprecated.
        The specified aspect ratio is ignored.
        See Also:
        Constant Field Values
      • RESIZE_MODE_ZOOM

        public static final int RESIZE_MODE_ZOOM
        Deprecated.
        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)
        Deprecated.
      • AspectRatioFrameLayout

        public AspectRatioFrameLayout​(Context context,
                                      @Nullable
                                      AttributeSet attrs)
        Deprecated.
    • Method Detail

      • setAspectRatio

        public void setAspectRatio​(float widthHeightRatio)
        Deprecated.
        Sets the aspect ratio that this view should satisfy.
        Parameters:
        widthHeightRatio - The width to height ratio.
      • getResizeMode

        public @com.google.android.exoplayer2.ui.AspectRatioFrameLayout.ResizeMode int getResizeMode()
        Deprecated.
      • onMeasure

        protected void onMeasure​(int widthMeasureSpec,
                                 int heightMeasureSpec)
        Deprecated.
        Overrides:
        onMeasure in class FrameLayout