Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <scale
- android:fromXScale="1.0"
- android:fromYScale="1.0"
- android:pivotX="50%"
- android:pivotY="50%"
- android:toXScale="1.3"
- android:toYScale="1.3"
- android:duration="1000"
- />
- scale.setAnimationListener(new Animation.AnimationListener() {
- @Override
- public void onAnimationEnd(Animation animation) {
- start1_value=1;
- Start1.setScaleX((float) 1.3);
- Start1.setScaleY((float) 1.3);
- }
- });
- ObjectAnimator scaleX = ObjectAnimator.ofFloat(view, "scaleX", 1.3f);
- ObjectAnimator scaleY = ObjectAnimator.ofFloat(view, "scaleY", 1.3f);
- AnimatorSet scale = new AnimatorSet();
- scaleX.setDuration(1000);
- scaleY.setDuration(1000);
- scale.play(scaleX).with(scaleY);
- scale.start();
- imageView.animate().scaleX(toX).scaleY(toY).setDuration(1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement