I want to do something when the shimmer animation end, but I don't find any way to make it come true. So I rewrite the source code.
in ShimmerFrameLayout
public void startShimmer(Animator.AnimatorListener listener) {
mShimmerDrawable.startShimmer(listener);
}
in ShimmerDrawable
public void startShimmer(Animator.AnimatorListener listener) {
if (mValueAnimator != null && !isShimmerStarted() && getCallback() != null) {
if (listener != null) {
mValueAnimator.addListener(listener);
}
mValueAnimator.start();
}
}
I want to do something when the shimmer animation end, but I don't find any way to make it come true. So I rewrite the source code. in ShimmerFrameLayout
in ShimmerDrawable
Could I make a
PR
?