private void startAlternateAnimation() {
Log.d("dabutaizha", "into startAlternateAnimation");
Object obj = mQuestionIcon.getTag();
if (obj == null || "animation_start".equals(obj)) {
float curTranslationX = mQuestionIcon.getTranslationX();
ObjectAnimator iconAnimatorStart = ObjectAnimator.ofFloat(mQuestionIcon, "translationX", curTranslationX, -800f);
iconAnimatorStart.start();
mQuestionIcon.setTag("animation_end");
mTipContent.setVisibility(View.VISIBLE);
ObjectAnimator contentAnimatorStart = ObjectAnimator.ofFloat(mTipContent, "alpha", 0f, 1f);
contentAnimatorStart.start();
}
if ("animation_end".equals(obj)) {
float curTranslationX = mQuestionIcon.getTranslationX();
ObjectAnimator iconAnimatorStart = ObjectAnimator.ofFloat(mQuestionIcon, "translationX", curTranslationX, 0f);
iconAnimatorStart.start();
mQuestionIcon.setTag("animation_start");
ObjectAnimator contentAnimatorStart = ObjectAnimator.ofFloat(mTipContent, "alpha", 1f, 0f);
contentAnimatorStart.start();
}
}
}