Android AlphaAnimation kinda jerky, any way to speed it up?
<p>I need to darken the screen, above which a menu will pop out.</p>

<p>Here's what I did:</p>

<pre><code>Animation fadeIn = new AlphaAnimation(0, (float) 0.8);
fadeIn.setDuration(500);
final LinearLayout LinLayShade = (LinearLayout)findViewById(R.id.LinLayShade);

fadeIn.setAnimationListener( new AnimationListener() {

public void onAnimationEnd(Animation arg0) { LinLayShade.setAlpha((float) 0.8); }

public void onAnimationRepeat(Animation arg0) {}

public void onAnimationStart(Animation arg0) {}
                    });             

LinLayShade.startAnimation(fadeIn);
</code></pre>

<p>But it still play out kinda jerky, looks like it makes some 3 frames at most.</p>

<p>Is there a way to make it more smooth?</p>

<p>Thanks!</p>
