오늘의 두번째 질문이에요 ㅠ.ㅠ

 

scrollview를 아래의 소스와 같이 scaleAnimation을 이용하여 확대 하였습니다.

 

그랬더니, scrollview안의 view들이 잘 확대 되었습니다.

 

그러나, 맨위와 맨 아래의 view들이 짤렸습니다.

 

아마도, scrollview의 내부 변수 값들이 그대로여서,

scrollview 내부의 높이가 확대 된 만큼 커지지 않은 것 처럼 보입니다.

 

어떻게 해야 할까요?

 

ㅠ.ㅠ

 

   ScaleAnimation scaleAni = new ScaleAnimation(1.0f, 1.2f, 1.0f, 1.2f
    , Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
  scaleAni.setDuration(1500);
  scaleAni.setStartOffset(200);
  scaleAni.setFillAfter(true);
  scaleAni.setInterpolator( new AccelerateInterpolator() );
  
  scaleAni.setAnimationListener( new AnimationListener() {
   public void onAnimationStart(Animation animation) {}
   public void onAnimationEnd(Animation animation) {}
   public void onAnimationRepeat(Animation animation) {}
  } );
  
  m_coverScroll.setAnimation(scaleAni);