animation nicht ab!! (android)

kann mir jemand sagen, warum diese animation nicht starten? ich habe versucht, indem Sie code in die onAnimationStart Zuhörer und es wird nie aufgerufen! es gibt keine Fehler, es ist einfach nie passiert.. ich habe gestarrt, an dieser für Stunden!!!

Animation bRegisterAnimation = fadeView(1,0,0);
bRegisterAnimation.setAnimationListener(new AnimationListener() {
    public void onAnimationStart(Animation arg0) {}
    public void onAnimationRepeat(Animation arg0) {}
    public void onAnimationEnd(Animation arg0) {
        bRegister.clearAnimation();
        bRegister.setVisibility(View.INVISIBLE);
    }
});
bRegister.setAnimation(bRegisterAnimation);

und hier ist die fadeView Funktion:

public Animation fadeView(float startA, float endA, int delay) {
    Animation animation = new AlphaAnimation(startA,endA);
    animation.setDuration(1000);
    animation.setStartOffset(delay);
    return animation;
}

Dank!

InformationsquelleAutor user1118042 | 2012-02-08
Schreibe einen Kommentar