public class RatioResolutionStrategy extends Object implements ResolutionStrategy
ResolutionStrategy will maintain a given aspect ratio and stretch the GLSurfaceView to the maximum available
screen size.ResolutionStrategy.MeasuredDimension| Constructor and Description |
|---|
RatioResolutionStrategy(float ratio) |
RatioResolutionStrategy(float width,
float height) |
| Modifier and Type | Method and Description |
|---|---|
ResolutionStrategy.MeasuredDimension |
calcMeasures(int widthMeasureSpec,
int heightMeasureSpec) |
public RatioResolutionStrategy(float ratio)
public RatioResolutionStrategy(float width,
float height)
public ResolutionStrategy.MeasuredDimension calcMeasures(int widthMeasureSpec, int heightMeasureSpec)
calcMeasures in interface ResolutionStrategyCopyright © 2015. All rights reserved.