MeasureUtils
class MeasureUtils
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun measureWithAspectRatio(widthSpec: Int, heightSpec: Int, aspectRatio: Float, outputSize: Size)
open fun measureWithAspectRatio(widthSpec: Int, heightSpec: Int, intrinsicWidth: Int, intrinsicHeight: Int, aspectRatio: Float, outputSize: Size)
Measure according to an aspect ratio an width and height constraints.
Link copied to clipboard
Link copied to clipboard
Set the {@param outputSize} to respect both size specs and try to keep both width and height equal.