public class RatioSizingUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RatioSizingUtils.RatioMeasureInfo |
static class |
RatioSizingUtils.RatioSizingInfo |
Constructor and Description |
---|
RatioSizingUtils() |
Modifier and Type | Method and Description |
---|---|
static RatioSizingUtils.RatioMeasureInfo |
getMeasureInfo(int widthMeasureSpec,
int heightMeasureSpec,
RatioSizingUtils.RatioSizingInfo ratioSizingInfo,
int widthPadding,
int heightPadding) |
static RatioSizingUtils.RatioSizingInfo |
getRatioSizingInfoFromAttrs(android.content.Context context,
android.util.AttributeSet attrs) |
static RatioSizingUtils.RatioSizingInfo |
parseRatioSizingInfo(String ratioString) |
public static RatioSizingUtils.RatioSizingInfo getRatioSizingInfoFromAttrs(android.content.Context context, android.util.AttributeSet attrs) throws IllegalArgumentException
IllegalArgumentException
public static RatioSizingUtils.RatioSizingInfo parseRatioSizingInfo(String ratioString) throws IllegalArgumentException
IllegalArgumentException
public static RatioSizingUtils.RatioMeasureInfo getMeasureInfo(int widthMeasureSpec, int heightMeasureSpec, RatioSizingUtils.RatioSizingInfo ratioSizingInfo, int widthPadding, int heightPadding)
Copyright © 2011–2014. All rights reserved.