/**
* Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end.
* @param listener the listener to be added to the current set of listeners for this animation.
*/
public void addListener(AnimatorListener listener){
if (mListeners == null) {
mListeners=new ArrayList<AnimatorListener>();
}
mListeners.add(listener);
}

Example 8

From project 3Dto2DApplet, under directory /src/java/nl/dannyarends/gameserver/movement/.

/**
* Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end.
* @param listener the listener to be added to the current set of listeners for this animation.
*/
public void addListener(AnimatorListener listener){
if (mListeners == null) {
mListeners=new ArrayList<AnimatorListener>();
}
mListeners.add(listener);
}

Example 10

From project 4308Cirrus, under directory /Extras/actionbarsherlock/src/com/actionbarsherlock/internal/nineoldandroids/animation/.