public void setShowTip(String tip) {
boolean oldShow = mShowTip;
mShowTip = true;
((TextView) mTipView).setText(tip);
if (oldShow) {
mTipView.removeCallbacks(hideTipRunnable);
} else {
mTipView.clearAnimation();
ScaleAnimation scaleAnimation = new ScaleAnimation(0.6f, 1, 1, 1,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
scaleAnimation.setDuration(ANIM_TIME);
mTipView.startAnimation(scaleAnimation);
}
mTipView.postDelayed(hideTipRunnable, 1000);
}
RefreshLayout.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:RLibrary
作者:
评论列表
文章目录