3
하나의 AnimationSet에 여러 개의 Translate 애니메이션을 추가하고 싶습니다. 나는 현재 AnimationSet에 리스너를 설정하고 onAnimationEnd() 메서드 (아래 참조)에서 새 AnimationSet을 수행하여이 작업을 수행하고 있습니다.이 작업은 하나의 AnimationSet에서 수행 할 수 있는지 궁금합니다.하나의 AnimationSet에 여러 Translate 애니메이션을 추가 할 수 있습니까?
?
view_2_anim_c.setAnimationListener(new AnimationListener() {
public void onAnimationStart(Animation animation) {
// TODO Auto-generated method stub
}
public void onAnimationRepeat(Animation animation) {
// TODO Auto-generated method stub
}
public void onAnimationEnd(Animation animation) {
// TODO Auto-generated method stub
apa2.startAnimation(view_2_anim_d);
//viewBAnimationD(apa2, 0);
}
});
감사! 회전, 알파 및 회전과 같은 한 가지 작업에서 수행 할 애니메이션 조합이 있다면 어떻게됩니까? Startoffset을 사용하여 하나의 AnimationSet에서도이 작업을 수행합니까? – user182192
그래, 그게 가장 쉬운 방법이 될거야. 당신은 동시에 그들을 실행할 수 있습니다, 모두 당신이 찾고있는 효과에 따라 다릅니다. – Bobbake4
하나의 세트에서 몇 번의 움직임을 만들 수있는 제한이 있습니까? – user182192