How to perform TranslateAnimation of textView that is larger than the view
<p>I have a LinearLayout that contains a few textViews and buttons.  The text in the textView is larger than the view.  My desire is to perform a TranslateAnimation on these textviews to have them scroll in from the right at a quick speed and then exit the left.  </p>

<p>The problem is that if the text is initially <em>bigger</em> than the view, the text gets cropped.  I first looked at this post <a href="http://stackoverflow.com/questions/2507798/stop-objects-from-wrapping-in-android">here</a>, but the text gets cropped.  I have made the text scrollable, and that works.  However, it depends on the user to actually scroll it.  I also tried a marquee, but it just doesn't have the effect I want.</p>

<p>Here is part of the code for the layout:</p>

<pre><code>          &lt;TextView
         android:text="@string/try_your"
         android:id="@+id/textView2" 
         android:layout_height="wrap_content"
         android:layout_width="wrap_content"
         android:layout_gravity="center"
         android:layout_marginBottom="5dip"
         android:paddingBottom="25dip"         
         android:textSize="24sp" 
         android:textStyle="bold"      
         android:singleLine = "true" 
     /&gt;
</code></pre>

<p>Here is the code for the TranslateAnimation:</p>

<pre><code>public void performLineAnimation1(int fade) {

    View think_you = findViewById(R.id.textView4);              
    TranslateAnimation slide = new TranslateAnimation(600.0f, -400.0f, 0.0f, 0.0f);


    slide.setDuration(7000);
    think_you.startAnimation(slide);

    ((TextView) think_you).setTextColor(getResources().getColor(R.color.white));

    //slide.setFillEnabled(true);

}
</code></pre>

<p>I've even tried to "trick" it by having the onDraw method draw the textView at a lot smaller pixels (sp) and then enlarging it later, but that doesn't work.</p>

<p>TranslateAnimation has the effects that I want, but I just can't get this to work. Does anybody have any suggestions?  </p>

<p>Thanks a lot.</p>

<p>Rick</p>
