title: Android - Rotate Object along Y-Axis
body: <p>I've a <strong>TextView</strong> in my app and I want it to rotate from left edge along Y-Axis.</p>
  
  <p>Using this code, </p>
  
  <p></p>
  
  <pre><code>&lt;rotate 
      android:fromDegrees="90"
      android:toDegrees="0"
      android:pivotX="0%"
      android:pivotY="0%"
      android:duration="2000" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm able to make it rotate along the left edge, but it does not move along Y-Axis.</p>
  
  <p>However, when I use <strong>objectAnimator</strong>, it does move along Y-Axis using its <strong>rotationY</strong> property, but then, I cannot set the values <strong>pivotX</strong> and <strong>pivotY</strong> which makes it to rotate along the centre rather than from the left edge.</p>
  
  <p>How do I achieve both the things at the same time?</p>
  
  <p>Please help me!!</p>
  
  <p>Thanks in advance.</p>