может кто-нибудь сказать мне, почему эта анимация не начинается? Я попытался поставить код в слушателе onAnimationStart, и он никогда не вызывается! ошибок нет, этого просто никогда не бывает. Я часами смотрел на это!анимация не начало !! (android)
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);
и здесь функция fadeView:
public Animation fadeView(float startA, float endA, int delay) {
Animation animation = new AlphaAnimation(startA,endA);
animation.setDuration(1000);
animation.setStartOffset(delay);
return animation;
}
спасибо!
работает как шарм, спасибо! – user1118042