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