메뉴바가있고 클릭하면 메뉴가 펼쳐지고 접히게 할려고 합니다
/*
LinearLayout menu_bar = (LinearLayout) findViewById(addr1);
LayoutAnimationController ani_cont;
ani_cont = AnimationUtils.loadLayoutAnimation(this,addr2);
menu_bar.setLayoutAnimation(ani_cont);
*/
/*
LinearLayout menu_bar = (LinearLayout) findViewById(addr1);
AnimationSet set = new AnimationSet(true);
LayoutAnimationController ani_cont = new LayoutAnimationController(set, 0.25f);
ani_cont = AnimationUtils.loadLayoutAnimation(this, addr2);
menu_bar.setLayoutAnimation(ani_cont);
*/
두가지 방식 모두 translate 애니메이션은 됩니다.
문제는 메뉴창 이동후 원위치로 돌아갑니다.
따라서 onAnimationEnd((AnimationSet arg0) 을 정의하여 잡아두려하는데
" ?.setAnimationListener(new AnimationListener() "
물음표에 menu_bar(레이아웃객체), ani_cont(컨트롤러), set(애니메이션셋) 를 각각 붙여봐도 안된다는겁니다.
다른 선언이나 무언가가 빠졌는지 아무리 뒤적거려봐도 모르겠네요
혹은 다른 방법이나 알고리즘은?
계산기어플에 ▲가있는 버튼기능을 말하는건데요
한수 가르쳐주심 고맙겠습니다 (__)




onAnimationEnd에 어떤 로직을 구현해서 잡아두신 건가요? 그냥 단순히 AnimationListener를 구현한 것만으로 잡히지는 않는데요