public abstract class CustomPatchLayout
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected float |
guide |
protected float |
shortSide |
protected Rect |
size |
Constructor and Description |
---|
CustomPatchLayout() |
Modifier and Type | Method and Description |
---|---|
abstract CustomPatchLayoutGroup |
calculateBottomGroup() |
abstract CustomPatchLayoutGroup |
calculateLeftGroup() |
abstract CustomPatchLayoutGroup |
calculateRightGroup() |
abstract CustomPatchLayoutGroup |
calculateTopGroup() |
protected static RectF |
createRectFromSize(float x,
float y,
float width,
float height) |
CustomPatchLayoutGroup |
getBottomGroup() |
CustomPatchLayoutGroup |
getLeftGroup() |
CustomPatchLayoutGroup |
getRightGroup() |
CustomPatchLayoutGroup |
getTopGroup() |
void |
setSize(Rect size,
float relativeScale) |
protected float guide
protected float shortSide
protected Rect size
public abstract CustomPatchLayoutGroup calculateBottomGroup()
public abstract CustomPatchLayoutGroup calculateLeftGroup()
public abstract CustomPatchLayoutGroup calculateRightGroup()
public abstract CustomPatchLayoutGroup calculateTopGroup()
protected static RectF createRectFromSize(float x, float y, float width, float height)
public CustomPatchLayoutGroup getBottomGroup()
public CustomPatchLayoutGroup getLeftGroup()
public CustomPatchLayoutGroup getRightGroup()
public CustomPatchLayoutGroup getTopGroup()
@CallSuper public void setSize(Rect size, float relativeScale)