getFillScaleWithBufferAspectRatio

Computes the scale by which a view has to scale in x and y in order to fill its parent while maintaining the buffer's aspect ratio.

Return

The scale by which view has to scale in x and y in order to fill its parent while maintaining bufferSize's aspect ratio.

Parameters

view

A target android.view.View which have to be scaled to the bufferSize.

bufferSize

A android.util.Size whose aspect ratio must be maintained when scaling view inside its parent container.