分类: Android平台
2015-12-03 11:34:35
,空软键盘输入每一个文字的时候优美的展现在edit效果,
本项目主要是自定义BiuEditText实现。
项目来自:
本项目主要由如下动画实现:
final AnimatorSet animSet = new AnimatorSet();
ObjectAnimator animX = ObjectAnimator.ofFloat(textView, "translationX", startX, endX);
ObjectAnimator animY = ObjectAnimator.ofFloat(textView, "translationY", startY, endY);
ObjectAnimator scaleX = ObjectAnimator.ofFloat(textView, "scaleX", 0.6f, 1.2f);
ObjectAnimator scaleY = ObjectAnimator.ofFloat(textView, "scaleY", 0.6f, 1.2f);
animY.setInterpolator(new DecelerateInterpolator());
animSet.setDuration(600);
animSet.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
contentContainer.removeView(textView);
}
});
animSet.playTogether(animX, animY, scaleX, scaleY);
animSet.start();
源码下载: