Package arc.backend.android.surfaceview
Class RatioResolutionStrategy
java.lang.Object
arc.backend.android.surfaceview.RatioResolutionStrategy
- All Implemented Interfaces:
ResolutionStrategy
This
ResolutionStrategy
will maintain a given aspect ratio and stretch the GLSurfaceView to the maximum available
screen size.-
Nested Class Summary
Nested classes/interfaces inherited from interface arc.backend.android.surfaceview.ResolutionStrategy
ResolutionStrategy.MeasuredDimension
-
Constructor Summary
ConstructorDescriptionRatioResolutionStrategy
(float ratio) RatioResolutionStrategy
(float width, float height) -
Method Summary
-
Constructor Details
-
RatioResolutionStrategy
public RatioResolutionStrategy(float ratio) -
RatioResolutionStrategy
public RatioResolutionStrategy(float width, float height)
-
-
Method Details
-
calcMeasures
public ResolutionStrategy.MeasuredDimension calcMeasures(int widthMeasureSpec, int heightMeasureSpec) - Specified by:
calcMeasures
in interfaceResolutionStrategy
-