안드로이드 개발 질문/답변
(글 수 45,052)
제목 그대로 입니다 애니메이션을 하나 만들었습니다.
폭이 약 50dp 되는 리니어 레이아웃인데요..
애니를 시작하면... 화면 좌측에서 우측으로 쭉~~! 이동합니다.
문제는 이걸 화면 중간쯤에서 stop하고 싶은데.... 당연히 있을거라 생각했던 메소드가 없어서 당황 스럽네요..
어떤 방법이 있는지 궁금해서
고수님들께 어쭈고자 이렇게 질문을 하게 되었습니다.
대략 소스는 아래와 같습니다.
TranslateAnimation trans = new TranslateAnimation(0.0f, 720.0f, 0.0f, 0.0f); trans.setDuration(2000); trans.setInterpolator(new LinearInterpolator()); trans.setFillAfter(true);
mLayout.startAnimation(trans); // mLayout.stopAnimation(trans); <--- 이런 메소드는 없더군요 ㅠ.ㅠ




public void clearAnimation ()
Cancels any animations for this view.
VIEW클래스에 위 메소드가 있네요 ... 확인해보세요 ~