0
Я хочу объединить анимацию в приложении для Android. Я использую ниже код для этого, но альфа-анимация не wrking. Я понятия не имею, почему он не работает.Почему альфа-анимация не работает в моем коде Android?
// create set of animations
AnimationSet login_page_animation = new AnimationSet(false);
// animations should be applied on the finish line
login_page_animation.setFillAfter(true);
// create scale animation
int white_background_height=((TextView) findViewById(R.id.login_white_backgroud)).getHeight();
TranslateAnimation translate_animation = new TranslateAnimation(0,0,0,- white_background_height/4);
translate_animation.setDuration(700);
// create Alpha animation
AlphaAnimation alpha_animation=new AlphaAnimation(0.0f,1.0f);
alpha_animation.setDuration(700);
// add new animations to the set
login_page_animation.addAnimation(translate_animation);
login_page_animation.addAnimation(translate_animation);