How to Rotate TextView?
<p>I want to rotate TextView but I can't get proper output. I am getting <code>textView</code> with missing some text</p>

<p><strong>In Layout</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_marginTop = "50dip"&gt;

&lt;TextView android:layout_width="wrap_content" android:gravity="bottom"
    android:layout_height="wrap_content" android:id="@+id/text"
    android:text="Shreeji \n Nath" /&gt;

&lt;/RelativeLayout&gt; 
</code></pre>

<p><strong>In Animation</strong></p>

<pre><code>   &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;rotate xmlns:android="http://schemas.android.com/apk/res/android"
        android:fromDegrees="40" android:toDegrees="-90" android:pivotX="40%"
        android:duration="0"&gt;
   &lt;/rotate&gt;
</code></pre>

<p><strong>Java file</strong></p>

<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.view.animation.AnimationUtils;
import android.view.animation.RotateAnimation;
import android.widget.TextView;

public class VDemo extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    TextView tv = (TextView)findViewById(R.id.text);
    RotateAnimation ranim = (RotateAnimation)AnimationUtils.loadAnimation(this,R.anim.myanim);
    ranim.setFillAfter(true); 
    tv.setAnimation(ranim);

  }
}
</code></pre>
