Android - Text Switcher
<p>I'm trying to add a text switcher dynamically but I get the error:</p>

<blockquote>
  <p>The method setFactory(ViewSwitcher.ViewFactory) in the type ViewSwitcher is not applicable for the arguments...</p>
</blockquote>

<p>Here's my code:</p>

<pre><code>TextSwitcher ts = (TextSwitcher) new TextSwitcher(this);
ts.setFactory(this);
Animation in = AnimationUtils.loadAnimation(this,android.R.anim.fade_in);
Animation out = AnimationUtils.loadAnimation(this,android.R.anim.fade_out);
ts.setInAnimation(in);
ts.setOutAnimation(out);
</code></pre>
