Back to project page TileView.
The source code is released under:
MIT License
If you think the Android project TileView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qozix.tileview.tiles; /*ww w . j a v a 2s .c o m*/ import java.lang.ref.WeakReference; import android.view.animation.Animation; public class TileTransitionListener implements Animation.AnimationListener { private WeakReference<TileManager> reference; public TileTransitionListener( TileManager tm ) { reference = new WeakReference<TileManager>( tm ); } @Override public void onAnimationStart( Animation animation ) { } @Override public void onAnimationRepeat( Animation animation ) { } @Override public void onAnimationEnd( Animation animation ) { TileManager tileManager = reference.get(); if( tileManager != null) { // why both? no clue... omit either one and abuse it, you'll get incomplete draws... tileManager.invalidate(); tileManager.postInvalidate(); } } }