use of com.marshalchen.common.uimodule.shimmer.Shimmer in project UltimateAndroid by cymcsg.
the class DemoOfUiActivity method initShimmerTextView.
private void initShimmerTextView() {
main_content_frame.setVisibility(View.INVISIBLE);
shimmer = new Shimmer();
shimmer.setRepeatCount(0).setDuration(800).setStartDelay(300).setDirection(Shimmer.ANIMATION_DIRECTION_LTR).setAnimatorListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
main_content_frame.setVisibility(View.VISIBLE);
main_content_frame.startAnimation(AnimationUtils.loadAnimation(DemoOfUiActivity.this, R.anim.fade_ins));
favShimmerReaLayout.setVisibility(View.GONE);
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
});
shimmer.start(favShimmerTextView);
}