List of usage examples for android.view View getPivotY
@ViewDebug.ExportedProperty(category = "drawing") public float getPivotY()
From source file:Main.java
public static void updateAnimation(final View v) { final ScaleAnimation scaleInAnimation = new ScaleAnimation(v.getX(), v.getX() + 1, v.getY(), v.getY() + 1, v.getPivotX(), v.getPivotY()); scaleInAnimation.setDuration(200);/*from www .j a v a 2 s .com*/ scaleInAnimation.setFillAfter(false); v.startAnimation(scaleInAnimation); }
From source file:org.protocoderrunner.apprunner.api.PUI.java
@ProtocoderScript @APIMethod(description = "Scales and moves a view to a given position and size", example = "") @APIParam(params = { "View", "x", "y", "w", "h" }) public void amplify(View v, float x, float y, float w, float h) { this.move(v, x, y); float pX = v.getPivotX(); float pY = v.getPivotY(); v.setPivotX(0);//from ww w . j a v a2 s . c om v.setPivotY(0); float sX = w / v.getWidth(); float sY = h / v.getHeight(); this.scale(v, sX, sY); v.setPivotX(pX); v.setPivotY(pY); }