/**
* Starts the animation to make the update text view fade in then fade out.
*/
private void startUpdateViewAnimation() {
// Create and start a fade in anmiation for the mUpdatedView. Re-use the current alpha
// to avoid restarting a previous or current fade in animation.
Animation in = new AlphaAnimation(mUpdatedView.getAlpha(), 1.0f);
in.setDuration(UPDATE_TEXT_ANIMATION_DURATION_MS);
in.setInterpolator(new LinearOutSlowInInterpolator());
in.setFillAfter(true);
mUpdatedView.startAnimation(in);
// Cancel all pending fade out animations and create a new on to be executed a little
// while after the fade in.
mHandler.removeCallbacks(mFadeOutRunnable);
mHandler.postDelayed(mFadeOutRunnable, UPDATE_TEXT_VISIBILITY_DURATION_MS);
}
PaymentRequestSection.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:chromium-for-android-56-debug-video
作者:
评论列表
文章目录