title: Android-Rotate and Expand imageview
body: <p>im trying to rotate an imageview in certain degrees and at the same time expand this imageview's height !
  my code so far is : </p>
  
  <pre><code>public class TongueHandler {
      ImageView tongue;
      RelativeLayout.LayoutParams tongue_params;
      ObjectAnimator rotate_tongue;
      ScaleAnimation scale_tongue;
      AnimationSet as;
      ImageView frog;
      Button btn;
  
  
      public TongueHandler(Button btn,ImageView frog,ImageView tongue){
          this.btn=btn;
          this.frog=frog;
          this.tongue=tongue;
      }
  
  
      public void Initialize()
      {
          tongue.setBackgroundColor(Color.RED);
  
          tongue_params=new RelativeLayout.LayoutParams(10,100);
          tongue_params.leftMargin=frog.getLeft()+frog.getWidth()/2;
          tongue_params.topMargin=frog.getTop()+frog.getHeight()/2;
          tongue.setLayoutParams(tongue_params);
          Animate();
      }
  
  
      public void Animate()
      {
          as=new AnimationSet(true);
          rotate_tongue=ObjectAnimator.ofFloat(tongue, "rotationX", 90.0f, 90+CalcAngle(frog,btn));
          rotate_tongue.setDuration(1);
          rotate_tongue.start();
          System.out.println("This is Angle: "+CalcAngle(frog,btn));
         /* scale_tongue=new ScaleAnimation(1,1,30,btn.getY(),1,2);
          scale_tongue.setDuration(500); */
         // as.addAnimation(scale_tongue);
          tongue.startAnimation(as);
          as.setAnimationListener(new Animation.AnimationListener() {
              @Override
              public void onAnimationStart(Animation animation) {
  
              }
  
              @Override
              public void onAnimationEnd(Animation animation) {
                 /* as=new AnimationSet(false);
                  rotate_tongue=new RotateAnimation(0,CalcAngle(frog,btn),frog.getWidth()/2,frog.getHeight()/2);
                  rotate_tongue.setDuration(1);
                  scale_tongue=new ScaleAnimation(30,btn.getY(),2,2,15,0);
                  scale_tongue.setDuration(200);
                  as.addAnimation(rotate_tongue);
                  as.addAnimation(scale_tongue);
                  tongue.startAnimation(as);*/
              }
  
              @Override
              public void onAnimationRepeat(Animation animation) {
  
              }
          });
      }
  
      public float CalcAngle(View frog,View fly)
      {
          float angle = (float) Math.toDegrees(Math.atan2(frog.getY() - DataBase.FlyY, frog.getX() - DataBase.FlyX));
          if(angle &lt; 0){
              angle += 360;
          }
         /* if (frog.getX()&gt;=DataBase.FlyX)
          {
              angle=-90f-angle;
          }
          else
          {
              angle=-90f+angle;
          }*/
          return angle;
      }
  
  }
  </code></pre>
  
  <p>the problem is that doesnt work at all as the image rotates but in wrong degrees (also i would like to do this instantly not even with 1ms delay) and generally the result is not sutisfying 
  any help is really appreciated 
  thank you ;)</p>