private void init() {
setText(getResources().getString(R.string.app_name).toLowerCase());
FontUtils.apply(this, FontUtils.ULTRA);
if (!sDidAnimate && !isInEditMode()) {
sDidAnimate = true;
final ValueAnimator animator = ValueAnimator.ofFloat(1, 0);
animator.addUpdateListener(anim -> setLetterSpacing((Float) anim.getAnimatedValue()));
animator.setStartDelay(500L);
animator.setDuration(2000L);
animator.setInterpolator(new BounceInterpolator());
animator.start();
setAlpha(0);
final ValueAnimator alphaAnimator = ObjectAnimator.ofFloat(this, View.ALPHA, 0, 1);
alphaAnimator.setStartDelay(500L);
alphaAnimator.setDuration(1000L);
alphaAnimator.setInterpolator(new FastOutSlowInInterpolator());
alphaAnimator.start();
}
}
AppTitleView.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:uwaterloo-api
作者:
评论列表
文章目录