有時候會碰到系統(tǒng)不認識AnimationListener這個類型诫钓,造成無法解析的情況丙笋,其實需要在前面加一個類型:
set.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation arg0) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationRepeat(Animation arg0) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationEnd(Animation arg0) {
// TODO Auto-generated method stub
}
});
比如new Animation.AnimationListener()