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, setYScaleFactorpublic ScaleTransformer(android.view.View view,
android.view.View parent)
public void updateScale(float verticalDragOffset)
updateScale in class TransformerverticalDragOffset - used to calculate the new scale.public void updatePosition(float verticalDragOffset)
updatePosition in class TransformerverticalDragOffset - used to calculate the new position.public boolean isViewAtRight()
isViewAtRight in class Transformerpublic boolean isViewAtBottom()
isViewAtBottom in class Transformerpublic boolean isNextToLeftBound()
isNextToLeftBound in class Transformerpublic boolean isNextToRightBound()
isNextToRightBound in class Transformerpublic int getMinHeightPlusMargin()
getMinHeightPlusMargin in class Transformerpublic int getMinWidthPlusMarginRight()
getMinWidthPlusMarginRight in class Transformer