void setHinted(boolean hinted) {
if (mHinted != hinted) {
mHinted = hinted;
regenerateCachedDrawable();
if (hinted) {
// Throb animation
Animation throbAnimation =
new ScaleAnimation(1.0f, 1.15f, 1.0f, 1.15f, mBounds.centerX(), mBounds.centerY());
throbAnimation.setInterpolator(new CycleInterpolator(0.5f));
throbAnimation.setDuration(HINT_ANIMATION_DURATION_MS);
throbAnimation.setStartTime(Animation.START_ON_FIRST_FRAME);
throbAnimation.setAnimationListener(new BaseAnimationListener());
updateAnimation(throbAnimation);
}
}
}
CardDrawable.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:triples
作者:
评论列表
文章目录