public class ScaleTransformer extends Transformer
Constructor and Description |
---|
ScaleTransformer(android.view.View view,
android.view.View parent) |
Modifier and Type | Method and Description |
---|---|
int |
getMinHeightPlusMargin() |
int |
getMinWidthPlusMarginRight() |
boolean |
isNextToLeftBound() |
boolean |
isNextToRightBound() |
boolean |
isViewAtBottom() |
boolean |
isViewAtRight() |
void |
updatePosition(float verticalDragOffset)
Uses Nineoldandroids to change the position of the view.
|
void |
updateScale(float verticalDragOffset)
Uses Nineoldandroids to change the scale.
|
getMarginBottom, getMarginRight, getOriginalHeight, getOriginalWidth, getParentView, getView, getXScaleFactor, getYScaleFactor, isAboveTheMiddle, isViewAtTop, setMarginBottom, setMarginRight, setViewHeight, setXScaleFactor, setYScaleFactor
public ScaleTransformer(android.view.View view, android.view.View parent)
public void updateScale(float verticalDragOffset)
updateScale
in class Transformer
verticalDragOffset
- used to calculate the new scale.public void updatePosition(float verticalDragOffset)
updatePosition
in class Transformer
verticalDragOffset
- used to calculate the new position.public boolean isViewAtRight()
isViewAtRight
in class Transformer
public boolean isViewAtBottom()
isViewAtBottom
in class Transformer
public boolean isNextToLeftBound()
isNextToLeftBound
in class Transformer
public boolean isNextToRightBound()
isNextToRightBound
in class Transformer
public int getMinHeightPlusMargin()
getMinHeightPlusMargin
in class Transformer
public int getMinWidthPlusMarginRight()
getMinWidthPlusMarginRight
in class Transformer